Skip to content

Commit 9015530

Browse files
committed
and again
1 parent 069e3e6 commit 9015530

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup/hosting.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ class ReadFileWithProgressReporting: # {{{
1717
def __init__(self, path, mode='rb'):
1818
self.fobj = open(path, mode)
1919
self.fobj.seek(0, os.SEEK_END)
20-
self._total = self.tell()
20+
self._total = self.fobj.tell()
2121
self.fobj.seek(0)
2222
self.start_time = time.time()
2323

24+
def tell(self, *a):
25+
return self.fobj.tell(*a)
26+
2427
def __enter__(self):
2528
return self
2629

0 commit comments

Comments
 (0)