~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/multiparent.py

  • Committer: Andrew Bennetts
  • Date: 2011-02-07 04:14:29 UTC
  • mfrom: (5535.4.26 fetch-all-tags-309682)
  • mto: This revision was merged to the branch mainline in revision 5648.
  • Revision ID: andrew.bennetts@canonical.com-20110207041429-3kc1blj34rvvxod9
Merge fetch-all-tags-309682.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007-2010 Canonical Ltd
 
1
# Copyright (C) 2007-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
30
30
    )
31
31
from bzrlib import bencode
32
32
""")
33
 
from bzrlib.tuned_gzip import GzipFile
 
33
from gzip import GzipFile
34
34
 
35
35
 
36
36
def topo_iter_keys(vf, keys=None):
564
564
        zip_file = GzipFile(None, mode='rb', fileobj=sio)
565
565
        try:
566
566
            file_version_id = zip_file.readline()
567
 
            return MultiParent.from_patch(zip_file.read())
 
567
            content = zip_file.read()
 
568
            return MultiParent.from_patch(content)
568
569
        finally:
569
570
            zip_file.close()
570
571