mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
Merge remote-tracking branch 'remotes/runeh/master' into runeh
This commit is contained in:
commit
3afa2c38fb
@ -13,7 +13,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import mailcap, mimetypes, tempfile, os, subprocess, glob, time
|
import mailcap, mimetypes, tempfile, os, subprocess, glob, time, shlex
|
||||||
import os.path, sys
|
import os.path, sys
|
||||||
import urwid
|
import urwid
|
||||||
from .. import controller, utils, flow, version
|
from .. import controller, utils, flow, version
|
||||||
@ -433,7 +433,8 @@ class ConsoleMaster(flow.FlowMaster):
|
|||||||
#If no EDITOR is set, assume 'vi'
|
#If no EDITOR is set, assume 'vi'
|
||||||
if not c:
|
if not c:
|
||||||
c = "vi"
|
c = "vi"
|
||||||
cmd = [c, name]
|
cmd = shlex.split(c)
|
||||||
|
cmd.append(name)
|
||||||
self.ui.stop()
|
self.ui.stop()
|
||||||
try:
|
try:
|
||||||
subprocess.call(cmd)
|
subprocess.call(cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user