fixup! websocket.*: [PEP 8] Use conventional line-length limit

This commit is contained in:
Allan Lewis
2016-04-28 13:58:54 +01:00
parent 88805d0425
commit 01b88d38da

View File

@@ -390,7 +390,8 @@ class continuous_frame(object):
def validate(self, frame):
if not self.recving_frames and frame.opcode == ABNF.OPCODE_CONT:
raise WebSocketProtocolException("Illegal frame")
if self.recving_frames and frame.opcode in (ABNF.OPCODE_TEXT, ABNF.OPCODE_BINARY):
if self.recving_frames and \
frame.opcode in (ABNF.OPCODE_TEXT, ABNF.OPCODE_BINARY):
raise WebSocketProtocolException("Illegal frame")
def add(self, frame):