KEMBAR78
Fix ctypes plugin trying to look up bytes in Python 2 by dgelessus · Pull Request #5924 · python/mypy · GitHub
Skip to content

Conversation

dgelessus
Copy link
Contributor

Fixes #5922.

This is because bytes should only be defined in Python 3, and unicode
should only be defined in Python 2. sys.version checks don't work in
test fixtures, so the only way to implement this is to split the
fixture into two separate files.
Copy link
Member

@ilevkivskyi ilevkivskyi 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 quick fix! LGTM.

@ilevkivskyi ilevkivskyi merged commit 7819cff into python:master Nov 20, 2018
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