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

Side by Side Diff: ppapi/generators/idl_namespace.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/generators/idl_log.py ('k') | ppapi/generators/idl_node.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 4 # found in the LICENSE file.
6 5
7 """ 6 """
8 IDLNamespace for PPAPI 7 IDLNamespace for PPAPI
9 8
10 This file defines the behavior of the AST namespace which allows for resolving 9 This file defines the behavior of the AST namespace which allows for resolving
11 a symbol as one or more AST nodes given a release or range of releases. 10 a symbol as one or more AST nodes given a release or range of releases.
12 """ 11 """
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 FooBar = MockNode('foobar', 1.0, 2.0) 237 FooBar = MockNode('foobar', 1.0, 2.0)
239 namespace = IDLNamespace(namespace) 238 namespace = IDLNamespace(namespace)
240 AddOkay(namespace, FooBar) 239 AddOkay(namespace, FooBar)
241 240
242 if errors: 241 if errors:
243 print 'Test failed with %d errors.' % errors 242 print 'Test failed with %d errors.' % errors
244 else: 243 else:
245 print 'Passed.' 244 print 'Passed.'
246 return errors 245 return errors
247 246
247
248 if __name__ == '__main__': 248 if __name__ == '__main__':
249 sys.exit(Main(sys.argv[1:])) 249 sys.exit(Main(sys.argv[1:]))
250
OLDNEW
« no previous file with comments | « ppapi/generators/idl_log.py ('k') | ppapi/generators/idl_node.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698