aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
Diffstat (limited to 'netlib')
-rw-r--r--netlib/h2/frame.py6
-rw-r--r--netlib/h2/h2.py5
-rw-r--r--netlib/http_auth.py1
-rw-r--r--netlib/http_cookies.py1
-rw-r--r--netlib/tcp.py2
5 files changed, 1 insertions, 14 deletions
diff --git a/netlib/h2/frame.py b/netlib/h2/frame.py
index d846b3b9..a7e81f48 100644
--- a/netlib/h2/frame.py
+++ b/netlib/h2/frame.py
@@ -1,10 +1,6 @@
-import base64
-import hashlib
-import os
import struct
-import io
-from .. import utils, odict, tcp
+from .. import utils
from functools import reduce
diff --git a/netlib/h2/h2.py b/netlib/h2/h2.py
index 1a39a635..7a85226f 100644
--- a/netlib/h2/h2.py
+++ b/netlib/h2/h2.py
@@ -1,8 +1,3 @@
-import base64
-import hashlib
-import os
-import struct
-import io
# "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
CLIENT_CONNECTION_PREFACE = '505249202a20485454502f322e300d0a0d0a534d0d0a0d0a'
diff --git a/netlib/http_auth.py b/netlib/http_auth.py
index 261b6654..0143760c 100644
--- a/netlib/http_auth.py
+++ b/netlib/http_auth.py
@@ -16,7 +16,6 @@ class NullProxyAuth(object):
"""
Clean up authentication headers, so they're not passed upstream.
"""
- pass
def authenticate(self, headers):
"""
diff --git a/netlib/http_cookies.py b/netlib/http_cookies.py
index 73e3f589..5cb39e5c 100644
--- a/netlib/http_cookies.py
+++ b/netlib/http_cookies.py
@@ -67,7 +67,6 @@ def _read_quoted_string(s, start):
break
elif s[i] == "\\":
escaping = True
- pass
else:
ret.append(s[i])
return "".join(ret), i + 1
diff --git a/netlib/tcp.py b/netlib/tcp.py
index 7c115554..49f92e4a 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -7,7 +7,6 @@ import threading
import time
import traceback
from OpenSSL import SSL
-import OpenSSL
from . import certutils
@@ -650,4 +649,3 @@ class TCPServer(object):
"""
Called after server shutdown.
"""
- pass