diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2020-11-20 20:25:40 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2020-11-20 21:05:21 +0100 |
commit | 0ac96ae996d36ff452afe0fbb7a368fcd35b219b (patch) | |
tree | 015d6990df7a853255344b7d6c95a60d948d169a /M2Crypto/AuthCookie.py | |
parent | 20cdafd017916c87acea1404254226b39ceea832 (diff) | |
download | m2crypto-0ac96ae996d36ff452afe0fbb7a368fcd35b219b.tar.gz |
Remove support for CentOS 6 and Python 2.6
Support of CentOS 6 ends on 2020-11-30.
Fixes #283
Diffstat (limited to 'M2Crypto/AuthCookie.py')
-rw-r--r-- | M2Crypto/AuthCookie.py | 7 |
1 files changed, 3 insertions, 4 deletions
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*)') |