~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-14 18:32:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6404.
  • Revision ID: jelmer@samba.org-20111214183219-psb0o3exfsnhpemq
Cope with features already existing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3298
3298
        self.line_no = line_no
3299
3299
        self.orig_line = orig_line.rstrip('\n')
3300
3300
        self.patch_line = patch_line.rstrip('\n')
 
3301
 
 
3302
 
 
3303
class FeatureAlreadyRegistered(BzrError):
 
3304
 
 
3305
    _fmt = 'The feature %(feature)s has already been registered.'
 
3306
 
 
3307
    def __init__(self, feature):
 
3308
        self.feature = feature