diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 23:57:18 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 23:57:18 +1200 |
commit | 64ef0a4561058de4ca7309767e89366bc1c7502f (patch) | |
tree | 435cae8ea1103ad6e81933516a6498607ef97999 /libpathod/rparse.py | |
parent | cb09488dc8e4b03706a9cc1fa71284a2f7ce33c1 (diff) | |
download | mitmproxy-64ef0a4561058de4ca7309767e89366bc1c7502f.tar.gz mitmproxy-64ef0a4561058de4ca7309767e89366bc1c7502f.tar.bz2 mitmproxy-64ef0a4561058de4ca7309767e89366bc1c7502f.zip |
Swap the offset, seconds arguments for the pause operator.
This makes it uniform with the other operators.s
Diffstat (limited to 'libpathod/rparse.py')
-rw-r--r-- | libpathod/rparse.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpathod/rparse.py b/libpathod/rparse.py index 8b19a1d2..ab657974 100644 --- a/libpathod/rparse.py +++ b/libpathod/rparse.py @@ -413,20 +413,20 @@ class Method: class PauseAt: - def __init__(self, seconds, offset): - self.seconds, self.offset = seconds, offset + def __init__(self, offset, seconds): + self.offset, self.seconds = offset, seconds @classmethod def expr(klass): e = pp.Literal("p").suppress() + e += Offset + e += pp.Literal(",").suppress() e += pp.MatchFirst( [ v_integer, pp.Literal("f") ] ) - e += pp.Literal(",").suppress() - e += Offset return e.setParseAction(lambda x: klass(*x)) def accept(self, settings, r): |