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

Unified Diff: third_party/libadblockplus/download_ndk.py

Issue 29674555: Issue 6273 - Apply eyeo python code style (Closed)
Patch Set: Addressed Vasily's comments Created Jan. 22, 2018, 7:11 a.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
Index: third_party/libadblockplus/download_ndk.py
diff --git a/third_party/libadblockplus/download_ndk.py b/third_party/libadblockplus/download_ndk.py
index 386f474ec557960cb00f80ebcb350b0944e939f8..130751652a7ee6386514b6ef1b163b53dddf7d44 100644
--- a/third_party/libadblockplus/download_ndk.py
+++ b/third_party/libadblockplus/download_ndk.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import os
import urllib
import zipfile
@@ -44,9 +46,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 | « no previous file | third_party/libadblockplus/prepare_dependencies.py » ('j') | third_party/libadblockplus/prepare_dependencies.py » ('J')

Powered by Google App Engine
This is Rietveld