Skip to content

Commit

Permalink
Missing lintage from last commit for file comm this time...
Browse files Browse the repository at this point in the history
  • Loading branch information
scasagrande committed Mar 4, 2016
1 parent bd1aba9 commit 706ae9a
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,19 @@ def seek(self, offset):
self._filelike.seek(offset)

def tell(self):
"""
Gets the file's current position.
:rtype: `int`
"""
return self._filelike.tell()

def flush(self):
"""
Flush the internal buffer to make sure everything has actually been
written to the file. This can be equivalent to a no-op on some
filelike objects.
"""
self._filelike.flush()

# METHODS #
Expand Down

0 comments on commit 706ae9a

Please sign in to comment.