##// END OF EJS Templates
httprepo: handle large lengths by bypassing the len() operator
Matt Mackall -
r14430:c864f5e7 default
parent child Browse files
Show More
@@ -37,7 +37,7 b' class httpsendfile(object):'
37 self.write = self._data.write
37 self.write = self._data.write
38 self._len = os.fstat(self._data.fileno()).st_size
38 self._len = os.fstat(self._data.fileno()).st_size
39 self._pos = 0
39 self._pos = 0
40 self._total = len(self) / 1024 * 2
40 self._total = self._len / 1024 * 2
41
41
42 def read(self, *args, **kwargs):
42 def read(self, *args, **kwargs):
43 try:
43 try:
General Comments 0
You need to be logged in to leave comments. Login now