Index: build/android/gyp/lint.py |
diff --git a/build/android/gyp/lint.py b/build/android/gyp/lint.py |
index 5b4e0b73dd297e252c9cfc7a68ccc6006e34aad8..339d98fd6e4fe7d87c61b3fe145defb467b1dac1 100755 |
--- a/build/android/gyp/lint.py |
+++ b/build/android/gyp/lint.py |
@@ -12,7 +12,7 @@ import os |
import sys |
from xml.dom import minidom |
-from util import build_utils # pylint: disable=F0401 |
+from util import build_utils |
_SRC_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), |
@@ -116,7 +116,7 @@ def _RunLint(lint_path, config_path, processed_config_path, manifest_path, |
return 0 |
-def main(): |
+def main(argv): |
parser = optparse.OptionParser() |
parser.add_option('--lint-path', help='Path to lint executable.') |
parser.add_option('--config-path', help='Path to lint suppressions file.') |
@@ -156,4 +156,4 @@ def main(): |
if __name__ == '__main__': |
- sys.exit(main()) |
+ sys.exit(main(sys.argv)) |