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

Unified Diff: ppapi/generators/idl_lexer.py

Issue 8653004: Fix python scripts in src/ppapi/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase error Created 8 years, 11 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 | « ppapi/generators/idl_generator.py ('k') | ppapi/generators/idl_lint.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/idl_lexer.py
diff --git a/ppapi/generators/idl_lexer.py b/ppapi/generators/idl_lexer.py
old mode 100644
new mode 100755
index bf0b134e7048f33761eea7546f88da9d9c5eb735..ef46a091379836d4d8be4836bcbc3f00c4a22132
--- a/ppapi/generators/idl_lexer.py
+++ b/ppapi/generators/idl_lexer.py
@@ -1,5 +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.
@@ -308,8 +307,6 @@ def TestExpect(tokens):
return -1
-
-
def Main(args):
filenames = ParseOptions(args)
@@ -328,5 +325,6 @@ def Main(args):
sys.stderr.write('%s\n' % str(le))
return -1
+
if __name__ == '__main__':
sys.exit(Main(sys.argv[1:]))
« no previous file with comments | « ppapi/generators/idl_generator.py ('k') | ppapi/generators/idl_lint.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698