aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
Diffstat (limited to 'netlib')
-rw-r--r--netlib/http/headers.py2
-rw-r--r--netlib/http/request.py4
-rw-r--r--netlib/websockets/__init__.py13
3 files changed, 14 insertions, 5 deletions
diff --git a/netlib/http/headers.py b/netlib/http/headers.py
index 6067ff5e..5cf15b6f 100644
--- a/netlib/http/headers.py
+++ b/netlib/http/headers.py
@@ -97,7 +97,7 @@ class Headers(MultiDict):
headers = {
_always_bytes(name).replace(b"_", b"-"): _always_bytes(value)
for name, value in six.iteritems(headers)
- }
+ }
self.update(headers)
@staticmethod
diff --git a/netlib/http/request.py b/netlib/http/request.py
index a6e2a5ef..fa8d54aa 100644
--- a/netlib/http/request.py
+++ b/netlib/http/request.py
@@ -240,7 +240,7 @@ class Request(Message):
query = utils.urlencode(value)
scheme, netloc, path, params, _, fragment = urllib.parse.urlparse(self.url)
_, _, _, self.path = utils.parse_url(
- urllib.parse.urlunparse([scheme, netloc, path, params, query, fragment]))
+ urllib.parse.urlunparse([scheme, netloc, path, params, query, fragment]))
@query.setter
def query(self, value):
@@ -288,7 +288,7 @@ class Request(Message):
path = "/" + "/".join(components)
scheme, netloc, _, params, query, fragment = urllib.parse.urlparse(self.url)
_, _, _, self.path = utils.parse_url(
- urllib.parse.urlunparse([scheme, netloc, path, params, query, fragment]))
+ urllib.parse.urlunparse([scheme, netloc, path, params, query, fragment]))
def anticache(self):
"""
diff --git a/netlib/websockets/__init__.py b/netlib/websockets/__init__.py
index 1c143919..fea696d9 100644
--- a/netlib/websockets/__init__.py
+++ b/netlib/websockets/__init__.py
@@ -1,2 +1,11 @@
-from .frame import *
-from .protocol import *
+from __future__ import absolute_import, print_function, division
+from .frame import FrameHeader, Frame, OPCODE
+from .protocol import Masker, WebsocketsProtocol
+
+__all__ = [
+ "FrameHeader",
+ "Frame",
+ "Masker",
+ "WebsocketsProtocol",
+ "OPCODE",
+]