~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to patchsource.py

  • Committer: Aaron Bentley
  • Date: 2011-09-25 01:18:55 UTC
  • mfrom: (776.2.1 unused-imports)
  • Revision ID: aaron@aaronbentley.com-20110925011855-3dil4ijgluvzq7q5
Remove unused imports, fix the importing of two error classes. (jelmer)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import re
2
2
 
3
 
from bzrlib import patches
 
3
from bzrlib import (
 
4
    patches,
 
5
    workingtree,
 
6
    )
4
7
 
5
8
from bzrlib.plugins.bzrtools import errors
6
9
 
28
31
 
29
32
class BzrPatchSource(PatchSource):
30
33
    def __init__(self, revision=None, file_list=None):
31
 
        from bzrlib.builtins import tree_files
32
 
        self.tree, self.file_list = tree_files(file_list)
 
34
        open_containing_paths = workingtree.WorkingTree.open_containing_paths
 
35
        self.tree, self.file_list = open_containing_paths(file_list)
33
36
        self.base = self.tree.basedir
34
37
        self.revision = revision
35
38