aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/language/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/language/http.py')
-rw-r--r--libpathod/language/http.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/libpathod/language/http.py b/libpathod/language/http.py
index 115f8069..3979a1ee 100644
--- a/libpathod/language/http.py
+++ b/libpathod/language/http.py
@@ -226,8 +226,8 @@ class Response(_HTTPMessage):
)
@classmethod
- def expr(klass):
- parts = [i.expr() for i in klass.comps]
+ def expr(cls):
+ parts = [i.expr() for i in cls.comps]
atom = pp.MatchFirst(parts)
resp = pp.And(
[
@@ -242,7 +242,7 @@ class Response(_HTTPMessage):
pp.ZeroOrMore(base.Sep + atom)
]
)
- resp = resp.setParseAction(klass)
+ resp = resp.setParseAction(cls)
return resp
def spec(self):
@@ -342,8 +342,8 @@ class Request(_HTTPMessage):
)
@classmethod
- def expr(klass):
- parts = [i.expr() for i in klass.comps]
+ def expr(cls):
+ parts = [i.expr() for i in cls.comps]
atom = pp.MatchFirst(parts)
resp = pp.And(
[
@@ -360,7 +360,7 @@ class Request(_HTTPMessage):
pp.ZeroOrMore(base.Sep + atom)
]
)
- resp = resp.setParseAction(klass)
+ resp = resp.setParseAction(cls)
return resp
def spec(self):