5627: Python file-like objects use SEET_SET as the default whence.
[arvados.git] / sdk / python / arvados / arvfile.py
index 53ae4a836c5965782413a0dd24db976ee1dfc28a..3129bdf2ff0c890337e4594d9fcf9605745d4b04 100644 (file)
@@ -77,7 +77,7 @@ class ArvadosFileReaderBase(_FileLikeObjectBase):
         return re.sub('\.(bz2|gz)$', '', self.name)
 
     @_FileLikeObjectBase._before_close
-    def seek(self, pos, whence=os.SEEK_CUR):
+    def seek(self, pos, whence=os.SEEK_SET):
         if whence == os.SEEK_CUR:
             pos += self._filepos
         elif whence == os.SEEK_END: