From 0da3e51e1c08eed2c8054d4a71bc591268b19af1 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 7 Jun 2015 13:18:33 +1200 Subject: 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. --- test/test_pathoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_pathoc.py') 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: -- cgit v1.2.3