From 8360f70024330eeeb5c53d29e4a05194f872b511 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 17 Oct 2016 15:15:22 +1300 Subject: First-order conversion to Python3-only - Zap various occurrences of Python2 in docs and scripts - Remove six from netlib, and some other places where obvious project-wide search and replace works. --- netlib/websockets/masker.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'netlib/websockets/masker.py') diff --git a/netlib/websockets/masker.py b/netlib/websockets/masker.py index bd39ed6a..03b8f435 100644 --- a/netlib/websockets/masker.py +++ b/netlib/websockets/masker.py @@ -1,7 +1,5 @@ from __future__ import absolute_import -import six - class Masker(object): """ @@ -19,10 +17,7 @@ class Masker(object): def mask(self, offset, data): result = bytearray(data) for i in range(len(data)): - if six.PY2: - result[i] ^= ord(self.key[offset % 4]) - else: - result[i] ^= self.key[offset % 4] + result[i] ^= self.key[offset % 4] offset += 1 result = bytes(result) return result -- cgit v1.2.3