From a65987feea9f70ecc198344c704940e83f4be5b1 Mon Sep 17 00:00:00 2001 From: inpos Date: Tue, 29 Mar 2016 17:57:14 +0300 Subject: [PATCH] SEEK_CUR --- lib/pyrrent2http/pyrrent2http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pyrrent2http/pyrrent2http.py b/lib/pyrrent2http/pyrrent2http.py index 0abe6a9..7ad2254 100644 --- a/lib/pyrrent2http/pyrrent2http.py +++ b/lib/pyrrent2http/pyrrent2http.py @@ -177,7 +177,7 @@ class TorrentFile(object): def SetPriority(self, priority): self.tfs.setPriority(self.index, priority) def readOffset(self): - return self.filePtr.seek(0, io.SEEK_CUR) + return self.filePtr.seek(0, os.SEEK_CUR) def havePiece(self, piece): return self.tfs.handle.have_piece(piece) def pieceFromOffset(self, offset):