~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to errors.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:
74
74
class ChangedBinaryFiles(BzrError):
75
75
 
76
76
    _fmt = 'Changes involve binary files.'
 
77
 
 
78
 
 
79
class NoConflictFiles(CommandError):
 
80
 
 
81
    _fmt = '%(base_name)s does not exist and there are no pending merges.'
 
82
 
 
83
    def __init__(self, base_name):
 
84
        CommandError.__init__(self, base_name=base_name)
 
85
 
 
86
 
 
87
class NotArchiveType(BzrError):
 
88
 
 
89
    _fmt = '%(path)s is not an archive.'
 
90
 
 
91
    def __init__(self, path):
 
92
        BzrError.__init__(self)
 
93
        self.path = path