summaryrefslogtreecommitdiff
path: root/astroid/exceptions.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2020-05-12 08:50:02 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2020-05-12 08:50:02 +0200
commit60290ea135bb2b53ab87ad6d60f042d20a72db0b (patch)
treece69d43ff9aa99819146f7c840ff3562222ceba7 /astroid/exceptions.py
parente53bfcb602114179bc3b0d4e1db7a5d155152d25 (diff)
downloadastroid-git-60290ea135bb2b53ab87ad6d60f042d20a72db0b.tar.gz
Fix the new violations of super-without-arguments
Diffstat (limited to 'astroid/exceptions.py')
-rw-r--r--astroid/exceptions.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/astroid/exceptions.py b/astroid/exceptions.py
index 7e9d655e..08e72c13 100644
--- a/astroid/exceptions.py
+++ b/astroid/exceptions.py
@@ -28,7 +28,7 @@ class AstroidError(Exception):
"""
def __init__(self, message="", **kws):
- super(AstroidError, self).__init__(message)
+ super().__init__(message)
self.message = message
for key, value in kws.items():
setattr(self, key, value)
@@ -46,7 +46,7 @@ class AstroidBuildingError(AstroidError):
"""
def __init__(self, message="Failed to import module {modname}.", **kws):
- super(AstroidBuildingError, self).__init__(message, **kws)
+ super().__init__(message, **kws)
class AstroidImportError(AstroidBuildingError):
@@ -69,7 +69,7 @@ class TooManyLevelsError(AstroidImportError):
message="Relative import with too many levels " "({level}) for module {name!r}",
**kws
):
- super(TooManyLevelsError, self).__init__(message, **kws)
+ super().__init__(message, **kws)
class AstroidSyntaxError(AstroidBuildingError):
@@ -89,7 +89,7 @@ class NoDefault(AstroidError):
name = None
def __init__(self, message="{func!r} has no default for {name!r}.", **kws):
- super(NoDefault, self).__init__(message, **kws)
+ super().__init__(message, **kws)
class ResolveError(AstroidError):
@@ -157,7 +157,7 @@ class InferenceError(ResolveError):
context = None
def __init__(self, message="Inference failed for {node!r}.", **kws):
- super(InferenceError, self).__init__(message, **kws)
+ super().__init__(message, **kws)
# Why does this inherit from InferenceError rather than ResolveError?
@@ -175,7 +175,7 @@ class NameInferenceError(InferenceError):
scope = None
def __init__(self, message="{name!r} not found in {scope!r}.", **kws):
- super(NameInferenceError, self).__init__(message, **kws)
+ super().__init__(message, **kws)
class AttributeInferenceError(ResolveError):
@@ -191,7 +191,7 @@ class AttributeInferenceError(ResolveError):
attribute = None
def __init__(self, message="{attribute!r} not found on {target!r}.", **kws):
- super(AttributeInferenceError, self).__init__(message, **kws)
+ super().__init__(message, **kws)
class UseInferenceDefault(Exception):