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:
+3
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user