114
114
# gzip.GzipFile.read() requires a tell() function
115
115
# but some transports return objects that cannot seek
116
116
# so buffer them in a StringIO instead
118
118
return gzip.GzipFile(mode='rb', fileobj=f)
120
120
from cStringIO import StringIO