diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-01 11:12:10 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-01 11:12:10 +1200 |
commit | 44fdcb4b8291a5be6738f32d6fde307af3f2034e (patch) | |
tree | 64a4a2cfa6295d0a367d5484a0d86bc5e22ab779 /netlib/websockets/frame.py | |
parent | be644453649f0b0cf84822ad9de566b7dc744873 (diff) | |
download | mitmproxy-44fdcb4b8291a5be6738f32d6fde307af3f2034e.tar.gz mitmproxy-44fdcb4b8291a5be6738f32d6fde307af3f2034e.tar.bz2 mitmproxy-44fdcb4b8291a5be6738f32d6fde307af3f2034e.zip |
Reorganise netlib imports according to Google Style Guide
Diffstat (limited to 'netlib/websockets/frame.py')
-rw-r--r-- | netlib/websockets/frame.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netlib/websockets/frame.py b/netlib/websockets/frame.py index cf8917c1..deb0ce33 100644 --- a/netlib/websockets/frame.py +++ b/netlib/websockets/frame.py @@ -6,10 +6,10 @@ import warnings import six -from .protocol import Masker from netlib import tcp from netlib import utils from netlib import human +from netlib.websockets import protocol MAX_16_BIT_INT = (1 << 16) @@ -267,7 +267,7 @@ class Frame(object): """ b = bytes(self.header) if self.header.masking_key: - b += Masker(self.header.masking_key)(self.payload) + b += protocol.Masker(self.header.masking_key)(self.payload) else: b += self.payload return b @@ -296,7 +296,7 @@ class Frame(object): payload = fp.safe_read(header.payload_length) if header.mask == 1 and header.masking_key: - payload = Masker(header.masking_key)(payload) + payload = protocol.Masker(header.masking_key)(payload) return cls( payload, |