diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 11:07:33 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 11:07:33 +0200 |
commit | 65be004bb2e0f8ba9a4712d0172bb0d0151a33bb (patch) | |
tree | efc377e4d4688264ca12e19f35d00ac04f4104ba /libpathod/language/http.py | |
parent | bd0cfef357ff33ab8be216998e8de69c1784c043 (diff) | |
download | mitmproxy-65be004bb2e0f8ba9a4712d0172bb0d0151a33bb.tar.gz mitmproxy-65be004bb2e0f8ba9a4712d0172bb0d0151a33bb.tar.bz2 mitmproxy-65be004bb2e0f8ba9a4712d0172bb0d0151a33bb.zip |
fix prospector code smells
Diffstat (limited to 'libpathod/language/http.py')
-rw-r--r-- | libpathod/language/http.py | 12 |
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): |