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

Unified Diff: native_client_sdk/src/build_tools/sdk_tools/sdk_update.py

Issue 10910101: fix pylint warnings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
Index: native_client_sdk/src/build_tools/sdk_tools/sdk_update.py
diff --git a/native_client_sdk/src/build_tools/sdk_tools/sdk_update.py b/native_client_sdk/src/build_tools/sdk_tools/sdk_update.py
index ac423a5e5d20787a5551d1813740bd34bc099309..45c72f4a6ca9bf6dec5b46e60afdb80383cef168 100755
--- a/native_client_sdk/src/build_tools/sdk_tools/sdk_update.py
+++ b/native_client_sdk/src/build_tools/sdk_tools/sdk_update.py
@@ -15,7 +15,7 @@ script forwards its arguments to sdk_updater_main.py.
import os
import subprocess
-from sdk_update_common import *
+from sdk_update_common import RenameDir, RemoveDir, Error
import sys
import tempfile
@@ -83,7 +83,7 @@ def RenameSdkToolsDirectory():
# Failed for some reason, move the old dir back.
try:
RenameDir(temp_sdktools, SDK_TOOLS_DIR)
- except:
+ except Error:
# Not much to do here. sdk_tools won't exist, but sdk_tools_update
# should. Hopefully running the batch script again will move
# sdk_tools_update -> sdk_tools and it will work this time...
@@ -104,7 +104,7 @@ def main():
return subprocess.call([NACLSDK_SHELL_SCRIPT] + args)
else:
return subprocess.call(MakeSdkUpdateMainCmd(args))
-
+
if __name__ == '__main__':
sys.exit(main())
« no previous file with comments | « native_client_sdk/src/build_tools/manifest_util.py ('k') | native_client_sdk/src/build_tools/sdk_tools/sdk_update_main.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698