comparison 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
comparison
equal deleted inserted replaced
1376:524ca4a06f70 1377:854775b27d1a
543 (default 65536) bytes at a time. Chunks may be less than size 543 (default 65536) bytes at a time. Chunks may be less than size
544 bytes if the chunk is the last chunk in the file, or the file is a 544 bytes if the chunk is the last chunk in the file, or the file is a
545 socket or some other type of file that sometimes reads less data 545 socket or some other type of file that sometimes reads less data
546 than is requested.""" 546 than is requested."""
547 s = f.read(size) 547 s = f.read(size)
548 while len(s) >= 0: 548 while len(s) > 0:
549 yield s 549 yield s
550 s = f.read(size) 550 s = f.read(size)
551 551
552 def makedate(): 552 def makedate():
553 t = time.time() 553 t = time.time()