~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/tar_exporter.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-14 10:52:24 UTC
  • mfrom: (5718.1.1 unreferenced-error)
  • Revision ID: pqm@pqm.ubuntu.com-20110314105224-8a5o4um4ueri4t0l
(jelmer) Fix an import in bzrlib.export.tar_exporter. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import tarfile
23
23
import time
24
24
 
25
 
from bzrlib import export, osutils
 
25
from bzrlib import (
 
26
    errors,
 
27
    export,
 
28
    osutils,
 
29
    )
26
30
from bzrlib.export import _export_iter_entries
27
31
from bzrlib.filters import (
28
32
    ContentFilterContext,
93
97
            item.linkname = ie.symlink_target
94
98
            fileobj = None
95
99
        else:
96
 
            raise BzrError("don't know how to export {%s} of kind %r" %
 
100
            raise errors.BzrError("don't know how to export {%s} of kind %r" %
97
101
                           (ie.file_id, ie.kind))
98
102
        ball.addfile(item, fileobj)
99
103
    ball.close()