diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-26 15:36:59 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-26 15:36:59 +1200 |
commit | a68b4498b87cbc8fc6f1c1c660df5fac09ca564e (patch) | |
tree | e1523c919e404dee1af96a970f74de98cbbb7f38 /libpathod/rparse.py | |
parent | 65aef81997be86344acd78c475ad3d8936407324 (diff) | |
download | mitmproxy-a68b4498b87cbc8fc6f1c1c660df5fac09ca564e.tar.gz mitmproxy-a68b4498b87cbc8fc6f1c1c660df5fac09ca564e.tar.bz2 mitmproxy-a68b4498b87cbc8fc6f1c1c660df5fac09ca564e.zip |
Allow naked value literal for pathoc path specifications.
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 bb45ae00..6306f746 100644 --- a/libpathod/rparse.py +++ b/libpathod/rparse.py @@ -293,6 +293,8 @@ class Body: class Path: def __init__(self, value): + if isinstance(value, basestring): + value = ValueLiteral(value) self.value = value def accept(self, settings, r): @@ -300,7 +302,7 @@ class Path: @classmethod def expr(klass): - e = Value.copy() + e = v_naked_literal.copy() return e.setParseAction(lambda x: klass(*x)) |