redirect to sderr with print

This commit is contained in:
Nikos Kouremenos 2006-02-08 23:30:20 +00:00
parent 2105fb0d93
commit 861a52c3ed
1 changed files with 1 additions and 2 deletions

View File

@ -46,8 +46,7 @@ i18n.init()
def send_error(error_message):
''' Writes error message to stderr and exits'''
sys.stderr.write(error_message + '\n')
sys.stderr.flush()
print >> sys.stderr, error_message
sys.exit(1)
try: