Permalink
Browse files

Merge pull request #43 from rosslagerwall/build-output

Print status information to stdout for event_rpcgen.py
  • Loading branch information...
2 parents 133956b + ffb0ba0 commit 2d2aba18a0a9a0ced47a70936b97e92223a15b0d @nmathewson nmathewson committed Mar 6, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 event_rpcgen.py
View
@@ -48,7 +48,7 @@ def __init__(self, name):
self._name = name
self._entries = []
self._tags = {}
- print >>sys.stderr, ' Created struct: %s' % name
+ print ' Created struct: %s' % name
def AddEntry(self, entry):
if self._tags.has_key(entry.Tag()):
@@ -58,7 +58,7 @@ def AddEntry(self, entry):
self._tags[entry.Tag()], line_count))
self._entries.append(entry)
self._tags[entry.Tag()] = entry.Name()
- print >>sys.stderr, ' Added entry: %s' % entry.Name()
+ print ' Added entry: %s' % entry.Name()
def Name(self):
return self._name
@@ -1668,13 +1668,13 @@ def run(self):
impl_file = self.impl_file
factory = self.factory
- print >>sys.stderr, 'Reading \"%s\"' % filename
+ print 'Reading \"%s\"' % filename
fp = open(filename, 'r')
entities = Parse(factory, fp)
fp.close()
- print >>sys.stderr, '... creating "%s"' % header_file
+ print '... creating "%s"' % header_file
header_fp = open(header_file, 'w')
print >>header_fp, factory.HeaderPreamble(filename)
@@ -1690,7 +1690,7 @@ def run(self):
print >>header_fp, factory.HeaderPostamble(filename)
header_fp.close()
- print >>sys.stderr, '... creating "%s"' % impl_file
+ print '... creating "%s"' % impl_file
impl_fp = open(impl_file, 'w')
print >>impl_fp, factory.BodyPreamble(filename, header_file)
for entry in entities:

0 comments on commit 2d2aba1

Please sign in to comment.