Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: third_party/libadblockplus_android/prepare_build_tools.py

Issue 29674555: Issue 6273 - Apply eyeo python code style (Closed)
Patch Set: Removed sys.exit() where return code is always 0 Created Jan. 29, 2018, 12:50 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libadblockplus/prepare_dependencies.py ('k') | third_party/libadblockplus_common/delete_dir.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libadblockplus_android/prepare_build_tools.py
diff --git a/third_party/libadblockplus_android/prepare_build_tools.py b/third_party/libadblockplus_android/prepare_build_tools.py
index 1a6772de737cadf892229dc915f24179dafaba1c..6d9c3454a976b96f9984be2cbc8cd846b86f2e94 100644
--- a/third_party/libadblockplus_android/prepare_build_tools.py
+++ b/third_party/libadblockplus_android/prepare_build_tools.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import os
import sys
import subprocess
@@ -77,9 +79,8 @@ def main(argv):
return 0
-if '__main__' == __name__:
+if __name__ == '__main__':
try:
sys.exit(main(sys.argv[1:]))
except KeyboardInterrupt:
- sys.stderr.write('interrupted\n')
- sys.exit(1)
+ sys.exit('interrupted')
« no previous file with comments | « third_party/libadblockplus/prepare_dependencies.py ('k') | third_party/libadblockplus_common/delete_dir.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld