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

Unified Diff: remoting/webapp/verify-webapp.py

Issue 8665013: Fix many* python scripts in src/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed chrome_frame/tools/test/page_cycler/cf_cycler.py Created 9 years, 1 month 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 | « remoting/webapp/verify-translations.py ('k') | testing/generate_gmock_mutant.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/verify-webapp.py
diff --git a/remoting/webapp/verify-webapp.py b/remoting/webapp/verify-webapp.py
index 1f0cc4f56e2f13fe295fcf2bb883cfa215006ba4..038de019cdfa38bd909b011307d7bb1b6b77b583 100755
--- a/remoting/webapp/verify-webapp.py
+++ b/remoting/webapp/verify-webapp.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -78,7 +78,7 @@ def CheckFileForUnknownTag(filename, messages):
def main():
if len(sys.argv) < 4:
print 'Usage: verify-webapp.py <touch> <messages> <message_users...>'
- sys.exit(1)
+ return 1
touch_file = sys.argv[1]
messages = json.load(open(sys.argv[2], 'r'))
@@ -101,8 +101,8 @@ def main():
f.close()
os.utime(touch_file, None)
- sys.exit(exit_code)
+ return exit_code
if __name__ == '__main__':
- main()
+ sys.exit(main())
« no previous file with comments | « remoting/webapp/verify-translations.py ('k') | testing/generate_gmock_mutant.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698