mercurial/util.py
changeset 1377 854775b27d1a
parent 1343 0f4e53e8c66b
child 1391 9395c2f94130
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()