~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Robert Collins
  • Date: 2010-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import os
21
21
import Queue
22
22
import sys
23
 
import tarfile
24
23
import tempfile
25
24
import threading
26
25
 
676
675
            temp.close()
677
676
 
678
677
    def _tarball_of_dir(self, dirname, compression, ofile):
 
678
        import tarfile
679
679
        filename = os.path.basename(ofile.name)
680
680
        tarball = tarfile.open(fileobj=ofile, name=filename,
681
681
            mode='w|' + compression)