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

Unified Diff: ppapi/generators/idl_release.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_propertynode.py ('k') | ppapi/generators/idl_visitor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/idl_release.py
diff --git a/ppapi/generators/idl_release.py b/ppapi/generators/idl_release.py
old mode 100644
new mode 100755
index a6670a2fd49b874d7b51fd5a29482a340664c9f9..7f54222590bbfe4ab5d9035981acbac38a5e2f6d
--- a/ppapi/generators/idl_release.py
+++ b/ppapi/generators/idl_release.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.
@@ -243,6 +242,7 @@ def TestReleaseNode():
assert not Foo23.InRange('M16', 'M17')
print "TestReleaseNode - Passed"
+
def TestReleaseListWarning():
FooXX = IDLRelease(None, None)
Foo1X = IDLRelease('M14', None)
@@ -257,6 +257,7 @@ def TestReleaseListWarning():
assert warning
print "TestReleaseListWarning - Passed"
+
def TestReleaseListError():
FooXX = IDLRelease(None, None)
Foo1X = IDLRelease('M14', None)
@@ -272,6 +273,7 @@ def TestReleaseListError():
assert error
print "TestReleaseListError - Passed"
+
def TestReleaseListOK():
FooXX = IDLRelease(None, None)
Foo1X = IDLRelease('M14', None)
@@ -307,6 +309,7 @@ def TestReleaseListOK():
def TestReleaseMap():
print "TestReleaseMap- Passed"
+
def Main(args):
TestReleaseNode()
TestReleaseListWarning()
@@ -315,6 +318,6 @@ def Main(args):
print "Passed"
return 0
+
if __name__ == '__main__':
sys.exit(Main(sys.argv[1:]))
-
« no previous file with comments | « ppapi/generators/idl_propertynode.py ('k') | ppapi/generators/idl_visitor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698