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

Side by Side Diff: ppapi/generators/idl_log.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_lint.py ('k') | ppapi/generators/idl_namespace.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
2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # 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 2 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 3 # found in the LICENSE file.
6 4
7 """ Error and information logging for IDL """ 5 """ Error and information logging for IDL """
8 6
9 # 7 #
10 # IDL Log 8 # IDL Log
11 # 9 #
12 # And IDLLog object provides a mechanism for capturing logging output 10 # And IDLLog object provides a mechanism for capturing logging output
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 self.capture = enable 49 self.capture = enable
52 50
53 def DrainLog(self): 51 def DrainLog(self):
54 out = self.log 52 out = self.log
55 self.log = [] 53 self.log = []
56 return out 54 return out
57 55
58 ErrOut = IDLLog('Error', sys.stderr) 56 ErrOut = IDLLog('Error', sys.stderr)
59 WarnOut = IDLLog('Warning', sys.stdout) 57 WarnOut = IDLLog('Warning', sys.stdout)
60 InfoOut = IDLLog('', sys.stdout) 58 InfoOut = IDLLog('', sys.stdout)
61
OLDNEW
« no previous file with comments | « ppapi/generators/idl_lint.py ('k') | ppapi/generators/idl_namespace.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698