Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: cleanup_links.py

Issue 2741733003: Reland of PyLint fixes for tools-webrtc and webrtc/tools (Closed)
Patch Set: Rebased Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « PRESUBMIT.py ('k') | tools-webrtc/autoroller/unittests/roll_deps_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cleanup_links.py
diff --git a/cleanup_links.py b/cleanup_links.py
index 46a7a56c8662b94f39c766e7659d0e770e572a45..9dafda7f406fc857680ad1de4e611c58bb298d07 100755
--- a/cleanup_links.py
+++ b/cleanup_links.py
@@ -53,7 +53,7 @@ class WebRTCLinkSetup(object):
del self._links_db[source]
-def _initialize_database(filename):
+def _InitializeDatabase(filename):
links_database = shelve.open(filename)
# Wipe the database if this version of the script ends up looking at a
# newer (future) version of the links db, just to be sure.
@@ -89,7 +89,7 @@ def main():
# The database file gets .db appended on some platforms.
db_filenames = [LINKS_DB, LINKS_DB + '.db']
if any(os.path.isfile(f) for f in db_filenames):
- links_database = _initialize_database(LINKS_DB)
+ links_database = _InitializeDatabase(LINKS_DB)
try:
symlink_creator = WebRTCLinkSetup(links_database, options.dry_run)
symlink_creator.CleanupLinks()
« no previous file with comments | « PRESUBMIT.py ('k') | tools-webrtc/autoroller/unittests/roll_deps_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698