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

Side by Side Diff: ppapi/generators/idl_diff.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_c_proto.py ('k') | ppapi/generators/idl_generator.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 import glob 6 import glob
8 import os 7 import os
9 import subprocess 8 import subprocess
10 import sys 9 import sys
11 10
12 from idl_option import GetOption, Option, ParseOptions 11 from idl_option import GetOption, Option, ParseOptions
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 print 'Done with %s\n\n' % src 342 print 'Done with %s\n\n' % src
344 if GetOption('ok'): 343 if GetOption('ok'):
345 open(diff, 'wt').write(output) 344 open(diff, 'wt').write(output)
346 if GetOption('halt'): 345 if GetOption('halt'):
347 return 1 346 return 1
348 else: 347 else:
349 print "\nSAME:\n src=%s\n gen=%s" % (src, gen) 348 print "\nSAME:\n src=%s\n gen=%s" % (src, gen)
350 if input: print ' ** Matched expected diff. **' 349 if input: print ' ** Matched expected diff. **'
351 print '\n' 350 print '\n'
352 351
352
353 if __name__ == '__main__': 353 if __name__ == '__main__':
354 sys.exit(Main(sys.argv[1:])) 354 sys.exit(Main(sys.argv[1:]))
355
OLDNEW
« no previous file with comments | « ppapi/generators/idl_c_proto.py ('k') | ppapi/generators/idl_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698