~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2005-08-01 19:25:31 UTC
  • Revision ID: mbp@sourcefrog.net-20050801192531-d2918f319d08a380
- better str method for InvalidRevisionNumber exception

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
 
32
32
class InvalidRevisionNumber(BzrError):
33
 
    pass
 
33
    def __init__(self, revno):
 
34
        self.args = [revno]
 
35
        
 
36
    def __str__(self):
 
37
        return 'invalid revision number: %r' % self.args[0]
34
38
 
35
39
 
36
40
class InvalidRevisionId(BzrError):