diff options
Diffstat (limited to 'pym/repoman')
-rw-r--r-- | pym/repoman/utilities.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 6003deeac..9ea5ff467 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -238,7 +238,7 @@ def format_qa_output(formatter, stats, fails, dofull, dofail, options, qawarning def editor_is_executable(editor): """ Given an EDITOR string, validate that it refers to - an executable. This uses shlex.split() to split the + an executable. This uses shlex_split() to split the first component and do a PATH lookup if necessary. @param editor: An EDITOR value from the environment. @@ -246,8 +246,7 @@ def editor_is_executable(editor): @rtype: bool @returns: True if an executable is found, False otherwise. """ - import shlex - editor_split = shlex.split(editor) + editor_split = util.shlex_split(editor) if not editor_split: return False filename = editor_split[0] |