Skip to content

Fix shlex parsing error on Windows in epylint #1941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 16, 2018
Merged

Fix shlex parsing error on Windows in epylint #1941

merged 2 commits into from
Mar 16, 2018

Conversation

thernstig
Copy link
Contributor

@coveralls
Copy link

coveralls commented Mar 15, 2018

Coverage Status

Coverage remained the same at 89.081% when pulling 3878626 on thernstig:bug/epylint_windows_rcfile into 9dd978a on PyCQA:master.

@@ -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='win' not in sys.platform)
Copy link
Contributor

@brycepg brycepg Mar 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sys.platform could be equal to darwin which is posix. Use not startswith('win')?

sys.platform mistakenly included darwin as not posix compliant
Copy link
Contributor

@PCManticore PCManticore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @thernstig and for the review @brycepg !

@PCManticore PCManticore merged commit 0a9ccfe into pylint-dev:master Mar 16, 2018
@thernstig thernstig deleted the bug/epylint_windows_rcfile branch April 2, 2018 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants