From f82b0b5998b9ef9e9ca312a8db8442e1c3dea6d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Tue, 17 Aug 2010 12:14:41 +0000 Subject: [PATCH] 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. --- pisi/archive.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pisi/archive.py b/pisi/archive.py index 6536385f..e45a083a 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -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()