~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-11 05:43:31 UTC
  • mfrom: (5017.2.4 trim-imports)
  • Revision ID: pqm@pqm.ubuntu.com-20100211054331-4qtx8q4od2tafla3
(mbp) trim modules loaded at startup time

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
 
683
682
            temp.close()
684
683
 
685
684
    def _tarball_of_dir(self, dirname, compression, ofile):
 
685
        import tarfile
686
686
        filename = os.path.basename(ofile.name)
687
687
        tarball = tarfile.open(fileobj=ofile, name=filename,
688
688
            mode='w|' + compression)