diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-08-17 10:08:02 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-08-17 10:08:02 +1200 |
commit | 95968ad558b9f0d6f0455298b3c7e245e39bbd73 (patch) | |
tree | 8b533c8025424a984165187a0789eeacf36f4e55 | |
parent | 13cb0cab90a85822610e24725b5fb23ab1aa681c (diff) | |
download | mitmproxy-95968ad558b9f0d6f0455298b3c7e245e39bbd73.tar.gz mitmproxy-95968ad558b9f0d6f0455298b3c7e245e39bbd73.tar.bz2 mitmproxy-95968ad558b9f0d6f0455298b3c7e245e39bbd73.zip |
Don't allow negative integer offsets for now.
-rw-r--r-- | libpathod/rparse.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpathod/rparse.py b/libpathod/rparse.py index 1a615950..3eaf2569 100644 --- a/libpathod/rparse.py +++ b/libpathod/rparse.py @@ -113,7 +113,8 @@ DATATYPES = dict( ) -v_integer = pp.Regex(r"[+-]?\d+")\ +#v_integer = pp.Regex(r"[+-]?\d+")\ +v_integer = pp.Regex(r"\d+")\ .setName("integer")\ .setParseAction(lambda toks: int(toks[0])) |