summaryrefslogtreecommitdiff
path: root/bin/pygettext.py
diff options
context:
space:
mode:
authorbwarsaw2002-10-21 22:36:58 +0000
committerbwarsaw2002-10-21 22:36:58 +0000
commit17da8273eb61687e1eb7c1e068613036fc1f3f46 (patch)
tree32dbcb9bb3a6bc8726cf9442dca618674cb93544 /bin/pygettext.py
parent993c8e5ba7e39b71b219aa20192bc98be7d29db1 (diff)
downloadmailman-17da8273eb61687e1eb7c1e068613036fc1f3f46.tar.gz
mailman-17da8273eb61687e1eb7c1e068613036fc1f3f46.tar.zst
mailman-17da8273eb61687e1eb7c1e068613036fc1f3f46.zip
Diffstat (limited to 'bin/pygettext.py')
-rwxr-xr-xbin/pygettext.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/pygettext.py b/bin/pygettext.py
index a0b687413..d6e1b4f79 100755
--- a/bin/pygettext.py
+++ b/bin/pygettext.py
@@ -183,9 +183,13 @@ msgstr ""
def usage(code, msg=''):
- print >> sys.stderr, _(__doc__) % globals()
+ if code:
+ fd = sys.stderr
+ else:
+ fd = sys.stdout
+ print >> fd, _(__doc__) % globals()
if msg:
- print >> sys.stderr, msg
+ print >> fd, msg
sys.exit(code)