diff options
| author | Simeon Simeonov | 2024-12-28 20:13:43 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2024-12-28 20:13:43 +0100 |
| commit | 82ef6adec6e59f9cc9dc9fa1a13a2b43e534bada (patch) | |
| tree | 5921f91387f8b4567f810c20570f458547e6ae64 /src/otp2289/__init__.py | |
| parent | e3a82c195f8e18fbd9691845ff4e6121986e13ea (diff) | |
Rename *Exception to *Error and do some general linting
Diffstat (limited to 'src/otp2289/__init__.py')
| -rw-r--r-- | src/otp2289/__init__.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/otp2289/__init__.py b/src/otp2289/__init__.py index 5e51498..c9e3c74 100644 --- a/src/otp2289/__init__.py +++ b/src/otp2289/__init__.py | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD | 1 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD |
| 3 | # | 2 | # |
| 4 | # Copyright (c) 2020-2023 Simeon Simeonov | 3 | # Copyright (c) 2020-2025 Simeon Simeonov |
| 5 | # All rights reserved. | 4 | # All rights reserved. |
| 6 | # | 5 | # |
| 7 | # Redistribution and use in source and binary forms, with or without | 6 | # Redistribution and use in source and binary forms, with or without |
| @@ -24,23 +23,24 @@ | |||
| 24 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 25 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | """A pure Python implementation of RFC-2289""" | 25 | """A pure Python implementation of RFC-2289""" |
| 26 | |||
| 27 | from .generator import ( | 27 | from .generator import ( |
| 28 | OTP_ALGO_MD5, | 28 | OTP_ALGO_MD5, |
| 29 | OTP_ALGO_SHA1, | 29 | OTP_ALGO_SHA1, |
| 30 | OTPChallengeException, | 30 | OTPChallengeError, |
| 31 | OTPGenerator, | 31 | OTPGenerator, |
| 32 | OTPGeneratorException, | 32 | OTPGeneratorError, |
| 33 | ) | 33 | ) |
| 34 | from .server import ( | 34 | from .server import ( |
| 35 | OTPInvalidResponse, | 35 | OTPInvalidResponseError, |
| 36 | OTPState, | 36 | OTPState, |
| 37 | OTPStateException, | 37 | OTPStateError, |
| 38 | OTPStore, | 38 | OTPStore, |
| 39 | OTPStoreException, | 39 | OTPStoreError, |
| 40 | ) | 40 | ) |
| 41 | 41 | ||
| 42 | __author__ = 'Simeon Simeonov' | 42 | __author__ = 'Simeon Simeonov' |
| 43 | __version__ = '1.2.1' | 43 | __version__ = '1.2.2' |
| 44 | __license__ = 'BSD 2-Clause' | 44 | __license__ = 'BSD 2-Clause' |
| 45 | 45 | ||
| 46 | 46 | ||
| @@ -57,12 +57,12 @@ VERSION = tuple(map(int_or_str, __version__.split('.'))) | |||
| 57 | __all__ = [ | 57 | __all__ = [ |
| 58 | 'OTP_ALGO_MD5', | 58 | 'OTP_ALGO_MD5', |
| 59 | 'OTP_ALGO_SHA1', | 59 | 'OTP_ALGO_SHA1', |
| 60 | 'OTPChallengeException', | 60 | 'OTPChallengeError', |
| 61 | 'OTPGenerator', | 61 | 'OTPGenerator', |
| 62 | 'OTPGeneratorException', | 62 | 'OTPGeneratorError', |
| 63 | 'OTPInvalidResponse', | 63 | 'OTPInvalidResponseError', |
| 64 | 'OTPState', | 64 | 'OTPState', |
| 65 | 'OTPStateException', | 65 | 'OTPStateError', |
| 66 | 'OTPStore', | 66 | 'OTPStore', |
| 67 | 'OTPStoreException', | 67 | 'OTPStoreError', |
| 68 | ] | 68 | ] |
