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
if self.mode == "r":
self.lzmaobj = lzma.LZMADecompressor()
if hasattr(self.fileobj, "seek"):
self.fileobj.seek(0)
# Seeking here can cause problems with Python 2.7
# if hasattr(self.fileobj, "seek"):
# self.fileobj.seek(0)
self.buf = ""
else:
self.lzmaobj = lzma.LZMACompressor()