~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/multiparent.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-01-12 00:08:41 UTC
  • mfrom: (5590.1.6 2.3-gzip-py2.7)
  • Revision ID: pqm@pqm.ubuntu.com-20110112000841-bsgwos6fnhv9nlc7
(jameinel) Stop using bzrlib.tuned_gzip.GzipFile. (John A Meinel)

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