Mercurial > cpython-lru_cache-weakref
diff Lib/SocketServer.py @ 6346:a5f29a560c09 legacy-trunk
No longer need to be very careful with saving the exception state
first. Don't store the traceback as a local variable, to avoid
circular references.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 29 Sep 1997 23:17:48 +0000 |
| parents | b56d527a433f |
| children | fb4b4d069cc7 |
line wrap: on
line diff
--- a/Lib/SocketServer.py Mon Sep 29 13:19:53 1997 +0000 +++ b/Lib/SocketServer.py Mon Sep 29 23:17:48 1997 +0000 @@ -248,12 +248,11 @@ The default is to print a traceback and continue. """ - exc, value, tb = sys.exc_type, sys.exc_value, sys.exc_traceback print '-'*40 print 'Exception happened during processing of request from', print client_address import traceback - traceback.print_exception(exc, value, tb) + traceback.print_exc() print '-'*40
