Commit f44555a8 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Removed needless curses dependency

parent fa6f57d6
import struct import struct
from os import urandom from os import urandom
from curses.ascii import isprint from string import printable
from errors import SocketClosed from errors import SocketClosed
...@@ -143,8 +143,8 @@ class Frame(object): ...@@ -143,8 +143,8 @@ class Frame(object):
% (self.__class__.__name__, self.opcode, len(self.payload)) % (self.__class__.__name__, self.opcode, len(self.payload))
if self.masking_key: if self.masking_key:
key = ''.join(c if isprint(c) else '.' for c in self.masking_key) k = ''.join(c if c in printable else '.' for c in self.masking_key)
s += ' masking_key=%4s' % key s += ' masking_key=%4s' % k
return s + '>' return s + '>'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment