Skip to content

Commit

Permalink
Don't override default Exception class __init__() and __str__()
Browse files Browse the repository at this point in the history
methods since we don't change anything.
  • Loading branch information
kevinsteves committed Oct 1, 2015
1 parent d4b504f commit 1730427
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
6 changes: 1 addition & 5 deletions lib/pan/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@


class PanConfigError(Exception):
def __init__(self, msg):
self.msg = msg

def __str__(self):
return self.msg
pass


class PanConfig:
Expand Down
6 changes: 1 addition & 5 deletions lib/pan/rc.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@


class PanRcError(Exception):
def __init__(self, msg):
self.msg = msg

def __str__(self):
return self.msg
pass


class PanRc:
Expand Down
8 changes: 1 addition & 7 deletions lib/pan/wfapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,7 @@ def _isbytes(s):


class PanWFapiError(Exception):
def __init__(self, msg):
self.msg = msg

def __str__(self):
if self.msg is None:
return ''
return self.msg
pass


class PanWFapi:
Expand Down
8 changes: 1 addition & 7 deletions lib/pan/xapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,7 @@


class PanXapiError(Exception):
def __init__(self, msg):
self.msg = msg

def __str__(self):
if self.msg is None:
return ''
return self.msg
pass


class PanXapi:
Expand Down

0 comments on commit 1730427

Please sign in to comment.