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
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user