From 0ac96ae996d36ff452afe0fbb7a368fcd35b219b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Fri, 20 Nov 2020 20:25:40 +0100 Subject: Remove support for CentOS 6 and Python 2.6 Support of CentOS 6 ends on 2020-11-30. Fixes #283 --- M2Crypto/AuthCookie.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'M2Crypto/AuthCookie.py') diff --git a/M2Crypto/AuthCookie.py b/M2Crypto/AuthCookie.py index c843797..ff6df2b 100644 --- a/M2Crypto/AuthCookie.py +++ b/M2Crypto/AuthCookie.py @@ -8,11 +8,10 @@ import logging import re import time -from M2Crypto import Rand, m2, py27plus, six, util -from M2Crypto.six.moves.http_cookies import SimpleCookie # pylint: disable=no-name-in-module,import-error +from M2Crypto import Rand, m2, six, util +from M2Crypto.six.moves.http_cookies import SimpleCookie -if py27plus: - from typing import re as type_re, AnyStr, Dict, Optional, Union # noqa +from typing import re as type_re, AnyStr, Optional, Union # noqa _MIX_FORMAT = 'exp=%f&data=%s&digest=' _MIX_RE = re.compile(r'exp=(\d+\.\d+)&data=(.+)&digest=(\S*)') -- cgit v1.2.1