# HG changeset patch # User Eric Hopper # Date 2005-10-03 23:07:54 # Node ID 854775b27d1abdbcdd9e3c677603c8cbadc9a565 # Parent 524ca4a06f708a3ae9d3dd5138d9b589029d8400 Fixed a bug in my changes to httprepo.py diff --git a/mercurial/httprepo.py b/mercurial/httprepo.py --- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -8,7 +8,7 @@ from node import * from remoterepo import * from demandload import * -demandload(globals(), "hg os urllib urllib2 urlparse zlib") +demandload(globals(), "hg os urllib urllib2 urlparse zlib util") class httprepository(remoterepository): def __init__(self, ui, path): diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -545,7 +545,7 @@ def filechunkiter(f, size = 65536): socket or some other type of file that sometimes reads less data than is requested.""" s = f.read(size) - while len(s) >= 0: + while len(s) > 0: yield s s = f.read(size)