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..2123563129be1b72ae34a44655300ca8e4f4e334 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 |
@@ -41,12 +43,9 @@ def main(argv): |
# Delete zip |
os.remove(ndk_dst) |
- return 0 |
- |
-if '__main__' == __name__: |
+if __name__ == '__main__': |
try: |
- sys.exit(main(sys.argv[1:])) |
+ main(sys.argv[1:]) |
except KeyboardInterrupt: |
- sys.stderr.write('interrupted\n') |
- sys.exit(1) |
+ sys.exit('interrupted') |