Show More
@@ -8,7 +8,7 b'' | |||||
8 | from node import * |
|
8 | from node import * | |
9 | from remoterepo import * |
|
9 | from remoterepo import * | |
10 | from demandload import * |
|
10 | from demandload import * | |
11 | demandload(globals(), "hg os urllib urllib2 urlparse zlib") |
|
11 | demandload(globals(), "hg os urllib urllib2 urlparse zlib util") | |
12 |
|
12 | |||
13 | class httprepository(remoterepository): |
|
13 | class httprepository(remoterepository): | |
14 | def __init__(self, ui, path): |
|
14 | def __init__(self, ui, path): |
@@ -545,7 +545,7 b' def filechunkiter(f, size = 65536):' | |||||
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) > |
|
548 | while len(s) > 0: | |
549 | yield s |
|
549 | yield s | |
550 | s = f.read(size) |
|
550 | s = f.read(size) | |
551 |
|
551 |
General Comments 0
You need to be logged in to leave comments.
Login now