summaryrefslogtreecommitdiff
path: root/src/urllib3/contrib/pyopenssl.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/urllib3/contrib/pyopenssl.py')
-rw-r--r--src/urllib3/contrib/pyopenssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/urllib3/contrib/pyopenssl.py b/src/urllib3/contrib/pyopenssl.py
index 58ea971e..3051ef3a 100644
--- a/src/urllib3/contrib/pyopenssl.py
+++ b/src/urllib3/contrib/pyopenssl.py
@@ -187,7 +187,7 @@ def _dnsname_to_stdlib(name):
try:
for prefix in [u"*.", u"."]:
if name.startswith(prefix):
- name = name[len(prefix) :] # noqa
+ name = name[len(prefix) :]
return prefix.encode("ascii") + idna.encode(name)
return idna.encode(name)
except idna.core.IDNAError:
@@ -349,7 +349,7 @@ class WrappedSocket(object):
total_sent = 0
while total_sent < len(data):
sent = self._send_until_done(
- data[total_sent : total_sent + SSL_WRITE_BLOCKSIZE] # noqa
+ data[total_sent : total_sent + SSL_WRITE_BLOCKSIZE]
)
total_sent += sent