summaryrefslogtreecommitdiffstats
path: root/Lib/quopri.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-18 00:51:22 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-18 00:51:22 (GMT)
commit68937b4cbcc3e88d4207e6391a311f9b7d067b71 (patch)
treeb5fffb2ee6c7f523ced6f49f9ab35bc22413cbcf /Lib/quopri.py
parent7ac9d4020100b99b17eeddf65bafa8e87f9f293a (diff)
downloadcpython-68937b4cbcc3e88d4207e6391a311f9b7d067b71.zip
cpython-68937b4cbcc3e88d4207e6391a311f9b7d067b71.tar.gz
cpython-68937b4cbcc3e88d4207e6391a311f9b7d067b71.tar.bz2
Change some uses of cStringIO.StringIO to io.StringIO.
This is undoubtedly insufficient and in some cases just as broken as before.
Diffstat (limited to 'Lib/quopri.py')
-rwxr-xr-xLib/quopri.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/quopri.py b/Lib/quopri.py
index fccfe85..5002cc8 100755
--- a/Lib/quopri.py
+++ b/Lib/quopri.py
@@ -105,7 +105,7 @@ def encode(input, output, quotetabs, header = 0):
def encodestring(s, quotetabs = 0, header = 0):
if b2a_qp is not None:
return b2a_qp(s, quotetabs = quotetabs, header = header)
- from cStringIO import StringIO
+ from io import StringIO
infp = StringIO(s)
outfp = StringIO()
encode(infp, outfp, quotetabs, header)
@@ -159,7 +159,7 @@ def decode(input, output, header = 0):
def decodestring(s, header = 0):
if a2b_qp is not None:
return a2b_qp(s, header = header)
- from cStringIO import StringIO
+ from io import StringIO
infp = StringIO(s)
outfp = StringIO()
decode(infp, outfp, header = header)