diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-12-22 18:26:15 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-12-22 18:26:15 -0600 |
commit | 4d250095cba36b32ce3e5083d453525209eeee06 (patch) | |
tree | fe0fe6dffb5d56a9407d98bc375c663a0817b784 /libmproxy/flow.py | |
parent | 0451eb193ef0abaf875bfd8ad2a1ac4bd68c3efe (diff) | |
download | mitmproxy-4d250095cba36b32ce3e5083d453525209eeee06.tar.gz mitmproxy-4d250095cba36b32ce3e5083d453525209eeee06.tar.bz2 mitmproxy-4d250095cba36b32ce3e5083d453525209eeee06.zip |
fix external viewer using shlex
This makes spawn_external_viewer not crash when $EDITOR or $PAGER have
spaces or multiple arguments.
In addition, spawn_external_viewer now chmods the file to read-only to
remind users who use only an $EDITOR that this function does not read
the file when the user returns.
Also, some of the redundant exception case handling for editing has been
consolidated.
fixes #79
Diffstat (limited to 'libmproxy/flow.py')
0 files changed, 0 insertions, 0 deletions