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

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

Issue 153743008: Revert of Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with changes to pylib/linker/test_case.py. Created 6 years, 10 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
« no previous file with comments | « build/android/gyp/create_device_library_links.py ('k') | build/android/gyp/create_standalone_apk.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/create_native_libraries_header.py
diff --git a/build/android/gyp/create_native_libraries_header.py b/build/android/gyp/create_native_libraries_header.py
index bd7b06e93619698c348b3c79449f17372e079636..a906439ad183e029169df9d3c8eff65b2dfda7d6 100755
--- a/build/android/gyp/create_native_libraries_header.py
+++ b/build/android/gyp/create_native_libraries_header.py
@@ -18,10 +18,10 @@ import optparse
import os
import sys
-from util import build_utils # pylint: disable=F0401
+from util import build_utils
-def main():
+def main(argv):
parser = optparse.OptionParser()
parser.add_option('--native-library-list',
@@ -44,7 +44,7 @@ def main():
# "content_shell_content_view" }' from a list of the form ["libbase.so",
# libnet.so", "libcontent_shell_content_view.so"]
libraries = ['"' + lib[3:-3] + '"' for lib in libraries]
- array = '= { ' + ', '.join(libraries) + '}'
+ array = '= { ' + ', '.join(libraries) + '}';
with open(options.native_library_list, 'w') as header:
header.write(array)
@@ -53,4 +53,4 @@ def main():
header.write('= "%s"' % options.version_name)
if __name__ == '__main__':
- sys.exit(main())
+ sys.exit(main(sys.argv))
« no previous file with comments | « build/android/gyp/create_device_library_links.py ('k') | build/android/gyp/create_standalone_apk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698