diff options
author | Guido van Rossum <guido@python.org> | 2007-05-18 00:51:22 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-18 00:51:22 +0000 |
commit | 8681b6882049f05c2c1e753d0df9a0b87bfb0de6 (patch) | |
tree | 6782ac3d093cff0ba7a75f74853a6eab8b65bb81 /Lib/mhlib.py | |
parent | e0535f82f46d4eb495daedf80802ab5305c77940 (diff) | |
download | cpython-8681b6882049f05c2c1e753d0df9a0b87bfb0de6.tar.gz |
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/mhlib.py')
-rw-r--r-- | Lib/mhlib.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/mhlib.py b/Lib/mhlib.py index cbe8cb1dd6..eecb447a13 100644 --- a/Lib/mhlib.py +++ b/Lib/mhlib.py @@ -697,10 +697,7 @@ class Message(mimetools.Message): encoding = self.getencoding() if not decode or encoding in ('', '7bit', '8bit', 'binary'): return self.fp.read() - try: - from cStringIO import StringIO - except ImportError: - from StringIO import StringIO + from io import StringIO output = StringIO() mimetools.decode(self.fp, output, encoding) return output.getvalue() |