Skip to content
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

updating CommentIgnoringArgumentParser line parsing to behave properly in non-POSIX environments #88

Merged
merged 2 commits into from
Nov 17, 2017

Conversation

mattsb42-aws
Copy link
Member

updating CommentIgnoringArgumentParser line parsing to behave properly in non-POSIX environments #78

Testing works in theory, but hold off merging until juneb@ has verified in an actual Windows environment.

@@ -41,6 +42,7 @@ def __init__(self, *args, **kwargs):
# I would rather not duplicate the typeshed's effort keeping it up to date.
# https://github.com/python/typeshed/blob/master/stdlib/2and3/argparse.pyi#L27-L39
self.__dummy_arguments = []
self.__is_posix = os.name == 'posix'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this might do funny things with Jython? I think platform.win32_ver() might do the trick?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed. Switching to platform.win32_ver()

…() to detect inverse (no win32 version means POSIX)
Copy link
Contributor

@lizroth lizroth left a comment

Choose a reason for hiding this comment

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

Basic sanity test worked. Captured platform testing in #91 and #92

@mattsb42-aws mattsb42-aws merged commit 8a7753d into aws:master Nov 17, 2017
@mattsb42-aws mattsb42-aws deleted the dev-78 branch November 17, 2017 03:27
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.

2 participants