aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/websockets
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/websockets')
-rw-r--r--netlib/websockets/__init__.py1
-rw-r--r--netlib/websockets/frame.py5
-rw-r--r--netlib/websockets/masker.py3
-rw-r--r--netlib/websockets/utils.py1
4 files changed, 3 insertions, 7 deletions
diff --git a/netlib/websockets/__init__.py b/netlib/websockets/__init__.py
index e14e8a7d..06c8f9bc 100644
--- a/netlib/websockets/__init__.py
+++ b/netlib/websockets/__init__.py
@@ -1,4 +1,3 @@
-from __future__ import absolute_import, print_function, division
from .frame import FrameHeader
from .frame import Frame
diff --git a/netlib/websockets/frame.py b/netlib/websockets/frame.py
index 2b36d461..b58fa289 100644
--- a/netlib/websockets/frame.py
+++ b/netlib/websockets/frame.py
@@ -1,4 +1,3 @@
-from __future__ import absolute_import
import os
import struct
import io
@@ -43,7 +42,7 @@ CLOSE_REASON = utils.BiDi(
)
-class FrameHeader(object):
+class FrameHeader:
def __init__(
self,
@@ -193,7 +192,7 @@ class FrameHeader(object):
return False
-class Frame(object):
+class Frame:
"""
Represents a single WebSockets frame.
Constructor takes human readable forms of the frame components.
diff --git a/netlib/websockets/masker.py b/netlib/websockets/masker.py
index 03b8f435..1c8330b1 100644
--- a/netlib/websockets/masker.py
+++ b/netlib/websockets/masker.py
@@ -1,7 +1,6 @@
-from __future__ import absolute_import
-class Masker(object):
+class Masker:
"""
Data sent from the server must be masked to prevent malicious clients
from sending data over the wire in predictable patterns.
diff --git a/netlib/websockets/utils.py b/netlib/websockets/utils.py
index aa0d39a1..fdec074e 100644
--- a/netlib/websockets/utils.py
+++ b/netlib/websockets/utils.py
@@ -3,7 +3,6 @@ Collection of WebSockets Protocol utility functions (RFC6455)
Spec: https://tools.ietf.org/html/rfc6455
"""
-from __future__ import absolute_import
import base64
import hashlib