Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions download/lzma.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,7 @@ def seek(self, offset, whence=io.SEEK_SET):
def tell(self):
"""Return the current file position."""
self._check_not_closed()
if self._mode == _MODE_READ:
return self._buffer.tell()
return self._pos
return self._buffer.tell() if self._mode == _MODE_READ else self._pos
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function LZMAFile.tell refactored with the following changes:



def open(filename, mode="rb", *,
Expand Down