hgwebfs: read to eof by default to match urllib2 behavior

This commit is contained in:
mischief 2018-11-28 11:34:52 -08:00
parent 099da8cb82
commit cd933b2a9c

View file

@ -59,7 +59,7 @@ class Webconn:
finally: finally:
ctl.close() ctl.close()
def read(self, amt=4096): def read(self, amt=-1):
return self.body.read(amt); return self.body.read(amt);
def close(self): def close(self):