From 8c6eef4713db36a2063dd5a68b3d37a5e4276508 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Fri, 14 Nov 2008 21:12:44 -0500 Subject: [PATCH] Make repo's editor work when the editor is a commandline with multiple args. --- editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor.py b/editor.py index 4f22257f..a297470d 100644 --- a/editor.py +++ b/editor.py @@ -69,14 +69,14 @@ least one of these before using this command.""" Returns: new value of edited text; None if editing did not succeed """ - editor = cls._GetEditor() + editor = cls._GetEditor().split() fd, path = tempfile.mkstemp() try: os.write(fd, data) os.close(fd) fd = None - if subprocess.Popen([editor, path]).wait() != 0: + if subprocess.Popen(editor + [path]).wait() != 0: raise EditorError() return open(path).read() finally: