Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit f36bf09

Browse files
committed
Correctly define basestring.
1 parent 6a12f2d commit f36bf09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyper/tls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def init_context(cert_path=None, cert=None, cert_password=None):
113113
try:
114114
basestring
115115
except NameError:
116-
basestring = str
116+
basestring = (str, bytes)
117117
if not isinstance(cert, basestring):
118118
context.load_cert_chain(cert[0], cert[1], cert_password)
119119
else:

0 commit comments

Comments
 (0)