/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
EXIT_INTERNAL_ERROR = 4
39
39
 
40
40
 
41
 
class BzrError(StandardError):
 
41
class BzrError(Exception):
42
42
    """
43
43
    Base class for errors raised by breezy.
44
44
 
72
72
           not subject to expansion. 'msg' is used instead of 'message' because
73
73
           python evolved and, in 2.6, forbids the use of 'message'.
74
74
        """
75
 
        StandardError.__init__(self)
 
75
        Exception.__init__(self)
76
76
        if msg is not None:
77
77
            # I was going to deprecate this, but it actually turns out to be
78
78
            # quite handy - mbp 20061103.
95
95
                # __str__() should always return a 'str' object
96
96
                # never a 'unicode' object.
97
97
                return s
98
 
        except Exception, e:
 
98
        except Exception as e:
99
99
            pass # just bind to 'e' for formatting below
100
100
        else:
101
101
            e = None
2943
2943
        self.timezone = timezone
2944
2944
 
2945
2945
 
2946
 
class CommandAvailableInPlugin(StandardError):
 
2946
class CommandAvailableInPlugin(Exception):
2947
2947
 
2948
2948
    internal_error = False
2949
2949