changeset 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 524ca4a06f70
children a0fcfbbf52bb
files mercurial/httprepo.py mercurial/util.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httprepo.py	Mon Oct 03 15:06:46 2005 -0700
+++ b/mercurial/httprepo.py	Mon Oct 03 16:07:54 2005 -0700
@@ -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):
--- 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)