diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-25 12:49:22 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-25 12:49:22 +1200 |
commit | eb43291b3c061c654dc93c26e924ca3cd0210b61 (patch) | |
tree | c8a72b3fbf1c9dd6c11362583909a6f86f9c29f2 /libpathod/rparse.py | |
parent | 24f69419df148eb333591b5e8b654cd2987c0843 (diff) | |
download | mitmproxy-eb43291b3c061c654dc93c26e924ca3cd0210b61.tar.gz mitmproxy-eb43291b3c061c654dc93c26e924ca3cd0210b61.tar.bz2 mitmproxy-eb43291b3c061c654dc93c26e924ca3cd0210b61.zip |
Note that pauses are skipped during previews.
Diffstat (limited to 'libpathod/rparse.py')
-rw-r--r-- | libpathod/rparse.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpathod/rparse.py b/libpathod/rparse.py index ea12185b..1a615950 100644 --- a/libpathod/rparse.py +++ b/libpathod/rparse.py @@ -533,9 +533,11 @@ class Message: def preview_safe(self): """ - Modify this message to be safe for previews. + Modify this message to be safe for previews. Returns a list of elided actions. """ + pauses = [i for i in self.actions if i[1] == "pause"] self.actions = [i for i in self.actions if i[1] != "pause"] + return pauses def effective_length(self, actions): """ |