archive: Comment a seek call as it causes a problem with Python 2.7

It seems this call is redundant here. No known problems so far.
This commit is contained in:
Fatih Aşıcı
2010-08-17 12:14:41 +00:00
parent f489e54909
commit f82b0b5998
+3 -2
View File
@@ -49,8 +49,9 @@ class _LZMAProxy(object):
self.pos = 0 self.pos = 0
if self.mode == "r": if self.mode == "r":
self.lzmaobj = lzma.LZMADecompressor() self.lzmaobj = lzma.LZMADecompressor()
if hasattr(self.fileobj, "seek"): # Seeking here can cause problems with Python 2.7
self.fileobj.seek(0) # if hasattr(self.fileobj, "seek"):
# self.fileobj.seek(0)
self.buf = "" self.buf = ""
else: else:
self.lzmaobj = lzma.LZMACompressor() self.lzmaobj = lzma.LZMACompressor()