equal
deleted
inserted
replaced
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() |