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/BIO.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/BIO.py')
-rw-r--r-- | M2Crypto/BIO.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/M2Crypto/BIO.py b/M2Crypto/BIO.py index 71a486a..090064b 100644 --- a/M2Crypto/BIO.py +++ b/M2Crypto/BIO.py @@ -4,11 +4,11 @@ from __future__ import absolute_import Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.""" +import io import logging +from typing import Any, AnyStr, Callable, Iterable, Optional, Union # noqa -from M2Crypto import m2, py27plus, six -if py27plus: - from typing import AnyStr, Callable, Iterable, Optional, Union # noqa +from M2Crypto import m2, six log = logging.getLogger('BIO') @@ -370,7 +370,7 @@ class SSLBio(BIO): self.closed = 0 def set_ssl(self, conn, close_flag=m2.bio_noclose): - # type: (Connection, int) -> None + ## type: (Connection, int) -> None """ Sets the bio to the SSL pointer which is contained in the connection object. |