cleaned fix
This commit is contained in:
parent
478e85a2d8
commit
43022f434a
1 changed files with 2 additions and 2 deletions
|
|
@ -497,9 +497,9 @@ class ConsoleApplication(BaseApplication):
|
||||||
content = content.encode(sys.stdin.encoding or locale.getpreferredencoding())
|
content = content.encode(sys.stdin.encoding or locale.getpreferredencoding())
|
||||||
f.write(content)
|
f.write(content)
|
||||||
f.flush()
|
f.flush()
|
||||||
if editor_params is not None and os.path.basename(editor) in editor_params:
|
try:
|
||||||
params = editor_params[os.path.basename(editor)]
|
params = editor_params[os.path.basename(editor)]
|
||||||
else:
|
except (KeyError,TypeError):
|
||||||
params = ''
|
params = ''
|
||||||
os.system("%s %s %s" % (editor, params, filename))
|
os.system("%s %s %s" % (editor, params, filename))
|
||||||
f.seek(0)
|
f.seek(0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue