aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/language/websockets.py
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/language/websockets.py')
-rw-r--r--libpathod/language/websockets.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpathod/language/websockets.py b/libpathod/language/websockets.py
index 51c1b3ee..18a20025 100644
--- a/libpathod/language/websockets.py
+++ b/libpathod/language/websockets.py
@@ -150,8 +150,8 @@ class WebsocketFrame(message.Message):
return self.tok(Length)
@classmethod
- def expr(klass):
- parts = [i.expr() for i in klass.components]
+ def expr(cls):
+ parts = [i.expr() for i in cls.components]
atom = pp.MatchFirst(parts)
resp = pp.And(
[
@@ -160,7 +160,7 @@ class WebsocketFrame(message.Message):
pp.ZeroOrMore(base.Sep + atom)
]
)
- resp = resp.setParseAction(klass)
+ resp = resp.setParseAction(cls)
return resp
@property