diff options
author | Guido van Rossum <guido@python.org> | 2007-05-18 00:51:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-18 00:51:22 (GMT) |
commit | 68937b4cbcc3e88d4207e6391a311f9b7d067b71 (patch) | |
tree | b5fffb2ee6c7f523ced6f49f9ab35bc22413cbcf /Lib/zipfile.py | |
parent | 7ac9d4020100b99b17eeddf65bafa8e87f9f293a (diff) | |
download | cpython-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/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index fa7e910..1e180fc 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -2,7 +2,7 @@ Read and write ZIP files. """ import struct, os, time, sys -import binascii, cStringIO +import binascii, io try: import zlib # We may need its compression method @@ -661,7 +661,7 @@ class ZipFile: self.start_dir = offset_cd + concat fp.seek(self.start_dir, 0) data = fp.read(size_cd) - fp = cStringIO.StringIO(data) + fp = io.StringIO(data) total = 0 while total < size_cd: centdir = fp.read(46) |