aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/cmdline.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-04-19 18:04:27 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-04-19 18:04:27 +1200
commit3891fe56385b323b435392aadb3f55848ee30857 (patch)
tree1f9a9f75cc7e106e7f0368cd435f995d2e09d0b1 /libpathod/cmdline.py
parentf8469a283b66455e6e72d6ee6b5f8c1f6b4d0d19 (diff)
downloadmitmproxy-3891fe56385b323b435392aadb3f55848ee30857.tar.gz
mitmproxy-3891fe56385b323b435392aadb3f55848ee30857.tar.bz2
mitmproxy-3891fe56385b323b435392aadb3f55848ee30857.zip
Refactor pathoc
We're getting ready for websockets. All the output specifiers are now on the Pathoc object itself - we can't assume that all input and output happens in response to a method call any more. This has the upside that we can unify the request/print_request methods.
Diffstat (limited to 'libpathod/cmdline.py')
-rw-r--r--libpathod/cmdline.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/libpathod/cmdline.py b/libpathod/cmdline.py
index a3b92649..3323716c 100644
--- a/libpathod/cmdline.py
+++ b/libpathod/cmdline.py
@@ -379,7 +379,6 @@ def args_pathod(argv, stdout=sys.stdout, stderr=sys.stderr):
if os.path.isfile(spec):
data = open(spec).read()
spec = data
-
try:
req = language.parse_response(spec)
except language.ParseException, v: