mercurial/util.py
changeset 1377 854775b27d1a
parent 1343 0f4e53e8c66b
child 1391 9395c2f94130
--- a/mercurial/util.py	Mon Oct 03 15:06:46 2005 -0700
+++ b/mercurial/util.py	Mon Oct 03 16:07:54 2005 -0700
@@ -545,7 +545,7 @@
     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)