]> granicus.if.org Git - python/commit
Use repr() on the filename in EnvironmentError.__str__(). This
authorGuido van Rossum <guido@python.org>
Tue, 11 Aug 1998 18:01:32 +0000 (18:01 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 11 Aug 1998 18:01:32 +0000 (18:01 +0000)
commitbe21d98cee17b21d71fa61d0b5f0fedb62dc4f43
tree8fa1fac6f2a441419d3936b122f0611eeed3ff05
parentee9306b610f0a90c2f35e72c6e8f11d63aae6db3
Use repr() on the filename in EnvironmentError.__str__().  This
displays funny characters, like spaces or control characters, more
clearly (one of my pet peeves in error messages).  Also only suppress
the filename if it is None; display it if it is '', since that would
be a genuine (illegal) filename passed in!
Lib/exceptions.py