aboutsummaryrefslogtreecommitdiff
path: root/asn1crypto/x509.py
diff options
context:
space:
mode:
authorwbond <will@wbond.net>2016-03-14 21:46:39 -0400
committerwbond <will@wbond.net>2016-03-14 21:46:39 -0400
commit59960eab74aae03548fd45f07f78c9f2b2a17205 (patch)
tree68fac1c91d7ed819ce8a306955ad2bc7f2452849 /asn1crypto/x509.py
parente48c75a71cac1f1b9aaf824e30387ad7c9816afc (diff)
downloadasn1crypto-59960eab74aae03548fd45f07f78c9f2b2a17205.tar.gz
Fix compatibility with newer versions of flake8
Diffstat (limited to 'asn1crypto/x509.py')
-rw-r--r--asn1crypto/x509.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/asn1crypto/x509.py b/asn1crypto/x509.py
index d20c27f..2386753 100644
--- a/asn1crypto/x509.py
+++ b/asn1crypto/x509.py
@@ -26,7 +26,7 @@ import unicodedata
from ._errors import unwrap
from ._iri import iri_to_uri, uri_to_iri
from ._ordereddict import OrderedDict
-from ._types import type_name, str_cls
+from ._types import type_name, str_cls, bytes_to_list
from .algos import SignedDigestAlgorithm
from .core import (
Any,
@@ -59,12 +59,6 @@ from .core import (
from .keys import PublicKeyInfo
from .util import int_to_bytes, int_from_bytes, inet_ntop, inet_pton
-if sys.version_info < (3,):
- bytes_to_list = lambda byte_string: [ord(b) for b in byte_string]
-
-else:
- bytes_to_list = list
-
# The structures in this file are taken from https://tools.ietf.org/html/rfc5280
# and a few other supplementary sources, mostly due to extra supported