projects
/
gnome.gobject-introspection
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
351cbee
)
Don't fail if no --output option is specified
author
Colin Walters
<walters@verbum.org>
Thu, 11 Jun 2009 13:53:35 +0000
(09:53 -0400)
committer
Colin Walters
<walters@verbum.org>
Thu, 11 Jun 2009 13:53:35 +0000
(09:53 -0400)
Printing to stdout is legitimate.
giscanner/dumper.py
patch
|
blob
|
history
diff --git
a/giscanner/dumper.py
b/giscanner/dumper.py
index
8b85ae5
..
e6a8148
100644
(file)
--- a/
giscanner/dumper.py
+++ b/
giscanner/dumper.py
@@
-91,7
+91,8
@@
class DumpCompiler(object):
# Public API
def run(self):
- print ' GEN ' + self._options.output
+ print ' GEN ' + (self._options.output and
+ self._options.output or '<stdout>')
c_path = self._generate_tempfile('.c')
f = open(c_path, 'w')
f.write(_PROGRAM_TEMPLATE)