# HG changeset patch # User Matt Mackall # Date 2005-10-24 21:55:20 # Node ID 16a5d349963c71f734b1928b8ad33dc6e39f0036 # Parent c91966c3bbf55e89e0a33e6ada734b030ae35db1 Calling flush is unnecessary with bz2 decompressors and may not even exist. diff --git a/mercurial/commands.py b/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))