Skip to content

Commit 0a9ccfe

Browse files
thernstigPCManticore
authored andcommitted
Fix shlex parsing error on Windows in epylint (#1941)
* Fix shlex parsing error on Windows in epylint Closes #1940 * Change py_run's shlex posix sys.platform sys.platform mistakenly included darwin as not posix compliant
1 parent 5a4f5d5 commit 0a9ccfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint/epylint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def py_run(command_options='', return_std=False, stdout=None, stderr=None):
139139
"""
140140
# Create command line to call pylint
141141
epylint_part = [sys.executable, "-c", "from pylint import epylint;epylint.Run()"]
142-
options = shlex.split(command_options)
142+
options = shlex.split(command_options, posix=not sys.platform.startswith('win'))
143143
cli = epylint_part + options
144144

145145
# Providing standard output and/or error if not set

0 commit comments

Comments
 (0)