diff mercurial/util.py @ 1377:854775b27d1a

Fixed a bug in my changes to httprepo.py
author Eric Hopper <hopper@omnifarious.org>
date Mon, 03 Oct 2005 16:07:54 -0700
parents 0f4e53e8c66b
children 9395c2f94130
line wrap: on
line diff
--- 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)