Calling flush is unnecessary with bz2 decompressors and may not even exist.
authorMatt Mackall <mpm@selenic.com>
Mon, 24 Oct 2005 14:55:20 -0700
changeset 1431 16a5d349963c
parent 1430 c91966c3bbf5
child 1432 612f3eba73ee
Calling flush is unnecessary with bz2 decompressors and may not even exist.
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1700,7 +1700,6 @@ def unbundle(ui, repo, fname):
         zd = bz2.BZ2Decompressor()
         for chunk in f:
             yield zd.decompress(chunk)
-        yield zd.flush()
 
     bzgen = bzgenerator(util.filechunkiter(f, 4096))
     repo.addchangegroup(util.chunkbuffer(bzgen))