From 12c5e38691b24d12a8fc9605e3b93fac86d461ae Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 21 Mar 2022 13:25:26 +0100 Subject: Reformat the code with annotations and new code style --- otp2289/__init__.py | 51 ++++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) (limited to 'otp2289/__init__.py') diff --git a/otp2289/__init__.py b/otp2289/__init__.py index 36d1659..608595b 100644 --- a/otp2289/__init__.py +++ b/otp2289/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-2-Clause-FreeBSD # -# Copyright (c) 2020, Simeon Simeonov +# Copyright (c) 2020-2022 Simeon Simeonov # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -24,20 +24,23 @@ # (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, - OTPGenerator, - OTPGeneratorException) -from .server import (OTPInvalidResponse, - OTPState, - OTPStateException, - OTPStore, - OTPStoreException) - +from .generator import ( + OTP_ALGO_MD5, + OTP_ALGO_SHA1, + OTPChallengeException, + OTPGenerator, + OTPGeneratorException, +) +from .server import ( + OTPInvalidResponse, + OTPState, + OTPStateException, + OTPStore, + OTPStoreException, +) __author__ = 'Simeon Simeonov' -__version__ = '1.0.0' +__version__ = '1.1.0-beta1' __license__ = 'BSD 2-Clause' @@ -51,13 +54,15 @@ def int_or_str(value): VERSION = tuple(map(int_or_str, __version__.split('.'))) -__all__ = ['OTP_ALGO_MD5', - 'OTP_ALGO_SHA1', - 'OTPChallengeException', - 'OTPGenerator', - 'OTPGeneratorException', - 'OTPInvalidResponse', - 'OTPState', - 'OTPStateException', - 'OTPStore', - 'OTPStoreException'] +__all__ = [ + 'OTP_ALGO_MD5', + 'OTP_ALGO_SHA1', + 'OTPChallengeException', + 'OTPGenerator', + 'OTPGeneratorException', + 'OTPInvalidResponse', + 'OTPState', + 'OTPStateException', + 'OTPStore', + 'OTPStoreException', +] -- cgit v1.3