From 7ecf3dcaeec4c0561fa2a952b08c259f3a542587 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Sat, 10 May 2008 20:38:40 +0000 Subject: [PATCH] Fixup old, invalid import. --- Lib/cookielib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/cookielib.py b/Lib/cookielib.py index ee31f4600c6..6c593908fa5 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()