summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2008-05-10 20:38:40 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2008-05-10 20:38:40 +0000
commit268d20a9f3432fb2a730aa7cc31dd54b6dc0c0c0 (patch)
tree01f0b36d4c9e86eb1fcac8e538f267ca4160c9da
parent3781cd9117244931f45902804b53f512f52d3d69 (diff)
downloadcpython-268d20a9f3432fb2a730aa7cc31dd54b6dc0c0c0.tar.gz
Fixup old, invalid import.
-rw-r--r--Lib/cookielib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py
index ee31f4600c..6c593908fa 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()