From: Jeremy Hylton Date: Sat, 10 May 2008 20:38:40 +0000 (+0000) Subject: Fixup old, invalid import. X-Git-Tag: v3.0b1~412 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ecf3dcaeec4c0561fa2a952b08c259f3a542587;p=thirdparty%2FPython%2Fcpython.git Fixup old, invalid import. --- diff --git a/Lib/cookielib.py b/Lib/cookielib.py index ee31f4600c63..6c593908fa5b 100644 --- a/Lib/cookielib.py +++ b/Lib/cookielib.py @@ -57,7 +57,7 @@ def _warn_unhandled_exception(): # There are a few catch-all except: statements in this module, for # catching input that's bad in unexpected ways. Warn if any # exceptions are caught there. - import warnings, traceback, StringIO + import io, warnings, traceback f = io.StringIO() traceback.print_exc(None, f) msg = f.getvalue()