~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2006-06-05 16:23:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: mbp@sourcefrog.net-20060605162359-2405198cadc86895
[broken] NotBranchError should unescape the url if possible

(Fixes some info blackbox tests)

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
            self.extra = ''
236
236
 
237
237
 
 
238
# TODO: This is given a URL; we try to unescape it but doing that from inside
 
239
# the exception object is a bit undesirable.
 
240
# TODO: Probably this behavior of should be a common superclass 
238
241
class NotBranchError(PathError):
239
 
    """Not a branch: %(path)s"""
 
242
    "Not a branch: %(path)s" 
 
243
 
 
244
    def __init__(self, path):
 
245
       import bzrlib.urlutils as urlutils
 
246
       self.path = urlutils.unescape_for_display(path, 'ascii')
240
247
 
241
248
 
242
249
class AlreadyBranchError(PathError):