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

Unified Diff: tools/sort-headers.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes 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 | « tools/site_compare/utils/browser_iterate.py ('k') | tools/swig/swig.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/sort-headers.py
diff --git a/tools/sort-headers.py b/tools/sort-headers.py
index fb7dd25bd5513ffcad10ee06b90f12dc20f37a86..168dfce808cf6126490fc2a308c6def629035a09 100755
--- a/tools/sort-headers.py
+++ b/tools/sort-headers.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.
@@ -15,6 +15,7 @@ import sys
import termios
import tty
+
def YesNo(prompt):
"""Prompts with a yes/no question, returns True if yes."""
print prompt,
@@ -110,11 +111,11 @@ def main():
if len(filenames) < 1:
parser.print_help()
- sys.exit(1)
+ return 1
for filename in filenames:
DiffAndConfirm(filename, opts.should_confirm)
if __name__ == '__main__':
- main()
+ sys.exit(main())
« no previous file with comments | « tools/site_compare/utils/browser_iterate.py ('k') | tools/swig/swig.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698