summaryrefslogtreecommitdiffstats
path: root/Lib/cookielib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r--Lib/cookielib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py
index 313912e..3a716d2 100644
--- a/Lib/cookielib.py
+++ b/Lib/cookielib.py
@@ -58,7 +58,7 @@ def _warn_unhandled_exception():
# catching input that's bad in unexpected ways. Warn if any
# exceptions are caught there.
import warnings, traceback, StringIO
- f = StringIO.StringIO()
+ f = io.StringIO()
traceback.print_exc(None, f)
msg = f.getvalue()
warnings.warn("cookielib bug!\n%s" % msg, stacklevel=2)