diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-04-21 20:48:29 +0300 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-05-12 13:43:30 +0300 |
commit | f8b00c732cc4a9095d7b0d7944232fd6921ffc4d (patch) | |
tree | b9e67c53c622bb2201ba5ad4a6d19a4b1d922bcb | |
parent | 832d26f26b4e7d0eb91689a5214119ccc610193f (diff) | |
download | pysaml2-f8b00c732cc4a9095d7b0d7944232fd6921ffc4d.tar.gz |
Replace NotImplemented with NotImplementedError
```
************* Module saml2.authn
src/saml2/authn.py:32:8: E0711: NotImplemented raised - should raise NotImplementedError (notimplemented-raised)
src/saml2/authn.py:32:8: E0702: Raising NotImplementedType while only classes or instances are allowed (raising-bad-type)
src/saml2/authn.py:35:8: E0711: NotImplemented raised - should raise NotImplementedError (notimplemented-raised)
src/saml2/authn.py:35:8: E0702: Raising NotImplementedType while only classes or instances are allowed (raising-bad-type)
src/saml2/authn.py:38:8: E0711: NotImplemented raised - should raise NotImplementedError (notimplemented-raised)
src/saml2/authn.py:38:8: E0702: Raising NotImplementedType while only classes or instances are allowed (raising-bad-type)
```
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rw-r--r-- | src/saml2/authn.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saml2/authn.py b/src/saml2/authn.py index d9cf1b7b..11af81e5 100644 --- a/src/saml2/authn.py +++ b/src/saml2/authn.py @@ -29,13 +29,13 @@ class UserAuthnMethod(object): self.srv = srv def __call__(self, *args, **kwargs): - raise NotImplemented + raise NotImplementedError def authenticated_as(self, **kwargs): - raise NotImplemented + raise NotImplementedError def verify(self, **kwargs): - raise NotImplemented + raise NotImplementedError def is_equal(a, b): |