aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/language/actions.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-05-30 12:03:13 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-05-30 12:03:13 +1200
commit4ed5043c67848bf717e48bc509d959422c8faeb6 (patch)
tree92abe731c72d34bf6b43cbe1ecb46939953a6860 /libpathod/language/actions.py
parent904760c6c2927caf49b7cbe4027dd1c8dd8e9fdb (diff)
downloadmitmproxy-4ed5043c67848bf717e48bc509d959422c8faeb6.tar.gz
mitmproxy-4ed5043c67848bf717e48bc509d959422c8faeb6.tar.bz2
mitmproxy-4ed5043c67848bf717e48bc509d959422c8faeb6.zip
Add coding style check, reformat.
Diffstat (limited to 'libpathod/language/actions.py')
-rw-r--r--libpathod/language/actions.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/libpathod/language/actions.py b/libpathod/language/actions.py
index f5b828fe..40adb4ea 100644
--- a/libpathod/language/actions.py
+++ b/libpathod/language/actions.py
@@ -13,6 +13,7 @@ class _Action(base.Token):
actions have one thing in common: an offset that specifies where the
action should take place.
"""
+
def __init__(self, offset):
self.offset = offset
@@ -36,11 +37,11 @@ class _Action(base.Token):
return self.spec()
@abc.abstractmethod
- def spec(self): # pragma: no cover
+ def spec(self): # pragma: no cover
pass
@abc.abstractmethod
- def intermediate(self, settings): # pragma: no cover
+ def intermediate(self, settings): # pragma: no cover
pass
@@ -65,7 +66,7 @@ class PauseAt(_Action):
return e.setParseAction(lambda x: klass(*x))
def spec(self):
- return "p%s,%s"%(self.offset, self.seconds)
+ return "p%s,%s" % (self.offset, self.seconds)
def intermediate(self, settings):
return (self.offset, "pause", self.seconds)
@@ -85,7 +86,7 @@ class DisconnectAt(_Action):
return e.setParseAction(lambda x: klass(*x))
def spec(self):
- return "d%s"%self.offset
+ return "d%s" % self.offset
def intermediate(self, settings):
return (self.offset, "disconnect")
@@ -110,7 +111,7 @@ class InjectAt(_Action):
return e.setParseAction(lambda x: klass(*x))
def spec(self):
- return "i%s,%s"%(self.offset, self.value.spec())
+ return "i%s,%s" % (self.offset, self.value.spec())
def intermediate(self, settings):
return (