cortesi/mitmproxy — pull request #81 by kanzure (2012-12-24 21:24:01+00:00)
Title: Fix external viewer function by 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