From 82ef6adec6e59f9cc9dc9fa1a13a2b43e534bada Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sat, 28 Dec 2024 20:13:43 +0100 Subject: Rename *Exception to *Error and do some general linting --- src/otp2289/__init__.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/otp2289/__init__.py') 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 @@ -# -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-2-Clause-FreeBSD # -# Copyright (c) 2020-2023 Simeon Simeonov +# Copyright (c) 2020-2025 Simeon Simeonov # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -24,23 +23,24 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """A pure Python implementation of RFC-2289""" + from .generator import ( OTP_ALGO_MD5, OTP_ALGO_SHA1, - OTPChallengeException, + OTPChallengeError, OTPGenerator, - OTPGeneratorException, + OTPGeneratorError, ) from .server import ( - OTPInvalidResponse, + OTPInvalidResponseError, OTPState, - OTPStateException, + OTPStateError, OTPStore, - OTPStoreException, + OTPStoreError, ) __author__ = 'Simeon Simeonov' -__version__ = '1.2.1' +__version__ = '1.2.2' __license__ = 'BSD 2-Clause' @@ -57,12 +57,12 @@ VERSION = tuple(map(int_or_str, __version__.split('.'))) __all__ = [ 'OTP_ALGO_MD5', 'OTP_ALGO_SHA1', - 'OTPChallengeException', + 'OTPChallengeError', 'OTPGenerator', - 'OTPGeneratorException', - 'OTPInvalidResponse', + 'OTPGeneratorError', + 'OTPInvalidResponseError', 'OTPState', - 'OTPStateException', + 'OTPStateError', 'OTPStore', - 'OTPStoreException', + 'OTPStoreError', ] -- cgit v1.3