aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathoc.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-06-07 13:18:33 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-06-07 13:18:33 +1200
commit0da3e51e1c08eed2c8054d4a71bc591268b19af1 (patch)
treea96991a862c05881bf57636135024155a0d787c1 /test/test_pathoc.py
parent7412ec83f55e6a9dcdde84603b88cd67bbf8b04d (diff)
downloadmitmproxy-0da3e51e1c08eed2c8054d4a71bc591268b19af1.tar.gz
mitmproxy-0da3e51e1c08eed2c8054d4a71bc591268b19af1.tar.bz2
mitmproxy-0da3e51e1c08eed2c8054d4a71bc591268b19af1.zip
Make parse_pathoc a generator
This lets us do things like this: get:/:ir,@1:x1000000000 It will also let us expand the language to include a "repeat forever" concept.
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r--test/test_pathoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py
index 994975fc..556aada5 100644
--- a/test/test_pathoc.py
+++ b/test/test_pathoc.py
@@ -73,7 +73,7 @@ class _TestDaemon:
if timeout:
c.settimeout(timeout)
for i in requests:
- r = language.parse_pathoc(i)[0]
+ r = language.parse_pathoc(i).next()
if explain:
r = r.freeze(language.Settings())
try: