Permalink
Browse files

write UsageError to stderr in showtraceback()

  • Loading branch information...
1 parent 7883c91 commit 0f89beec95ac7ed2a3283416db3cd912aff3f37f @minrk minrk committed Oct 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/interactiveshell.py
@@ -1546,7 +1546,7 @@ def showtraceback(self,exc_tuple = None,filename=None,tb_offset=None,
# line, there may be SyntaxError cases with imported code.
self.showsyntaxerror(filename)
elif etype is UsageError:
- print "UsageError:", value
+ self.write_err("UsageError: %s" % value)
else:
# WARNING: these variables are somewhat deprecated and not
# necessarily safe to use in a threaded environment, but tools

0 comments on commit 0f89bee

Please sign in to comment.