Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4ce502 commit a9c5e02Copy full SHA for a9c5e02
1 file changed
IPython/lib/editorhooks.py
@@ -6,7 +6,6 @@
6
"""
7
8
import os
9
-import pipes
10
import shlex
11
import subprocess
12
import sys
@@ -47,9 +46,9 @@ def install_editor(template, wait=False):
47
46
def call_editor(self, filename, line=0):
48
if line is None:
49
line = 0
50
- cmd = template.format(filename=pipes.quote(filename), line=line)
+ cmd = template.format(filename=shlex.quote(filename), line=line)
51
print(">", cmd)
52
- # pipes.quote doesn't work right on Windows, but it does after splitting
+ # shlex.quote doesn't work right on Windows, but it does after splitting
53
if sys.platform.startswith('win'):
54
cmd = shlex.split(cmd)
55
proc = subprocess.Popen(cmd, shell=True)
0 commit comments