Skip to content

Commit

Permalink
Use predefined constant instand of magic number (msiemens#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
yan97ao authored and msiemens committed Sep 27, 2016
1 parent 48bc83b commit e5e7160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinydb/storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def close(self):

def read(self):
# Get the file size
self._handle.seek(0, 2)
self._handle.seek(0, os.SEEK_END)
size = self._handle.tell()

if not size:
Expand Down

0 comments on commit e5e7160

Please sign in to comment.