aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/language/actions.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-18 11:07:33 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-18 11:07:33 +0200
commit65be004bb2e0f8ba9a4712d0172bb0d0151a33bb (patch)
treeefc377e4d4688264ca12e19f35d00ac04f4104ba /libpathod/language/actions.py
parentbd0cfef357ff33ab8be216998e8de69c1784c043 (diff)
downloadmitmproxy-65be004bb2e0f8ba9a4712d0172bb0d0151a33bb.tar.gz
mitmproxy-65be004bb2e0f8ba9a4712d0172bb0d0151a33bb.tar.bz2
mitmproxy-65be004bb2e0f8ba9a4712d0172bb0d0151a33bb.zip
fix prospector code smells
Diffstat (limited to 'libpathod/language/actions.py')
-rw-r--r--libpathod/language/actions.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/libpathod/language/actions.py b/libpathod/language/actions.py
index 40adb4ea..f825d0cc 100644
--- a/libpathod/language/actions.py
+++ b/libpathod/language/actions.py
@@ -53,7 +53,7 @@ class PauseAt(_Action):
self.seconds = seconds
@classmethod
- def expr(klass):
+ def expr(cls):
e = pp.Literal("p").suppress()
e += base.TokOffset
e += pp.Literal(",").suppress()
@@ -63,7 +63,7 @@ class PauseAt(_Action):
pp.Literal("f")
]
)
- return e.setParseAction(lambda x: klass(*x))
+ return e.setParseAction(lambda x: cls(*x))
def spec(self):
return "p%s,%s" % (self.offset, self.seconds)
@@ -80,10 +80,10 @@ class DisconnectAt(_Action):
_Action.__init__(self, offset)
@classmethod
- def expr(klass):
+ def expr(cls):
e = pp.Literal("d").suppress()
e += base.TokOffset
- return e.setParseAction(lambda x: klass(*x))
+ return e.setParseAction(lambda x: cls(*x))
def spec(self):
return "d%s" % self.offset
@@ -103,12 +103,12 @@ class InjectAt(_Action):
self.value = value
@classmethod
- def expr(klass):
+ def expr(cls):
e = pp.Literal("i").suppress()
e += base.TokOffset
e += pp.Literal(",").suppress()
e += base.TokValue
- return e.setParseAction(lambda x: klass(*x))
+ return e.setParseAction(lambda x: cls(*x))
def spec(self):
return "i%s,%s" % (self.offset, self.value.spec())