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

Commit

Permalink
Fix flake8 basestring complaints.
Browse files Browse the repository at this point in the history
  • Loading branch information
hwms committed Feb 23, 2020
1 parent b359887 commit 2fc8b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyper/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def init_context(cert_path=None, cert=None, cert_password=None):

if cert is not None:
try:
basestring
except NameError:
from builtins import basestring
except ImportError:
basestring = (str, bytes)
if not isinstance(cert, basestring):
context.load_cert_chain(cert[0], cert[1], cert_password)
Expand Down

0 comments on commit 2fc8b64

Please sign in to comment.