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

Unified Diff: build/android/gyp/jar_toc.py

Issue 197693002: [Android] Lint build/android/gyp/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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: build/android/gyp/jar_toc.py
diff --git a/build/android/gyp/jar_toc.py b/build/android/gyp/jar_toc.py
index ca3152f6cf4b06fe898de176442f255967327751..e2cad71db250a245c23732a61659ad52f218eed2 100755
--- a/build/android/gyp/jar_toc.py
+++ b/build/android/gyp/jar_toc.py
@@ -18,13 +18,14 @@ rebuild, will have a corresponding change in the TOC file.
"""
import optparse
-import os
import re
import sys
import zipfile
+# pylint: disable=F0401
from util import build_utils
from util import md5_check
+# pylint: enable=F0401
def GetClassesInZipFile(zip_file):
@@ -91,7 +92,7 @@ def DoJarToc(options):
build_utils.Touch(toc_path)
-def main(argv):
+def main():
parser = optparse.OptionParser()
parser.add_option('--jar-path', help='Input .jar path.')
parser.add_option('--toc-path', help='Output .jar.TOC path.')
@@ -106,4 +107,4 @@ def main(argv):
if __name__ == '__main__':
- sys.exit(main(sys.argv))
+ sys.exit(main())

Powered by Google App Engine
This is Rietveld 408576698