aboutsummaryrefslogtreecommitdiff
path: root/py/makeqstrdata.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-08 15:03:25 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-08 15:03:25 +0000
commitfdf0da54360dbbf46dc761a9dfec6ac91dffae8e (patch)
tree473b6903eb5a6781d7e47eb01879a0a041881a10 /py/makeqstrdata.py
parent6fc765c928460ad8a116f8dd1b8b1412fb997829 (diff)
makeqstrdata: print error to stderr.
Diffstat (limited to 'py/makeqstrdata.py')
-rw-r--r--py/makeqstrdata.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py
index 6ae229c73..02bfc5202 100644
--- a/py/makeqstrdata.py
+++ b/py/makeqstrdata.py
@@ -1,5 +1,6 @@
import argparse
import re
+import sys
# codepoint2name is different in Python 2 to Python 3
import platform
@@ -37,7 +38,7 @@ def do_work(infiles):
# verify line is of the correct form
match = re.match(r'Q\((.+)\)$', line)
if not match:
- print('({}:{}) bad qstr format, got {}'.format(infile, line_number, line))
+ print('({}:{}) bad qstr format, got {}'.format(infile, line_number, line), file=sys.stderr)
return False
# get the qstr value
@@ -68,7 +69,7 @@ def main():
result = do_work(args.files)
if not result:
- print('exiting with error code')
+ print('exiting with error code', file=sys.stderr)
exit(1)
if __name__ == "__main__":