Commit cb0a8291 by willmcgugan@gmail.com

Used SEEK_* constants from fs, rather than os

parent 3739a44b
from __future__ import unicode_literals
from __future__ import print_function
import os
from fs import SEEK_SET, SEEK_CUR, SEEK_END
import io
from functools import wraps
......@@ -36,7 +37,7 @@ class RawWrapper(object):
def isatty(self):
return self._f.isatty()
def seek(self, offset, whence=os.SEEK_SET):
def seek(self, offset, whence=SEEK_SET):
return self._f.seek(offset, whence)
def readable(self):
......@@ -53,7 +54,7 @@ class RawWrapper(object):
if hasattr(self._f, 'seekable'):
return self._f.seekable()
try:
self.seek(0, os.SEEK_CUR)
self.seek(0, SEEK_CUR)
except IOError:
return False
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment