diff options
author | thernstig <30827238+thernstig@users.noreply.github.com> | 2018-03-16 17:28:47 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-03-16 17:28:47 +0100 |
commit | 0a9ccfe748db2a03180557cc6c05a63b9a4e1e45 (patch) | |
tree | b9d2cd91d8f8e7fd2b2aa341287fda39ebf73a3a /pylint/epylint.py | |
parent | 5a4f5d5fcf6699b4cb51478284bcdffdc46f06c8 (diff) | |
download | pylint-git-0a9ccfe748db2a03180557cc6c05a63b9a4e1e45.tar.gz |
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
Diffstat (limited to 'pylint/epylint.py')
-rwxr-xr-x | pylint/epylint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/epylint.py b/pylint/epylint.py index 4f7c2ae77..e5398b2d5 100755 --- a/pylint/epylint.py +++ b/pylint/epylint.py @@ -139,7 +139,7 @@ def py_run(command_options='', return_std=False, stdout=None, stderr=None): """ # Create command line to call pylint epylint_part = [sys.executable, "-c", "from pylint import epylint;epylint.Run()"] - options = shlex.split(command_options) + options = shlex.split(command_options, posix=not sys.platform.startswith('win')) cli = epylint_part + options # Providing standard output and/or error if not set |