Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Distinguish 'x' and b'x' in Python 2 #17

Merged
merged 1 commit into from
Sep 20, 2016
Merged

Conversation

ilevkivskyi
Copy link
Member

Fixes #10

@gvanrossum @JukkaL @ddfisher
This is a naive fix. It only checks the first string in concatenation at CST level, for b or B prefix and sets the has_b flag in Str AST node accordingly.

@gvanrossum
Copy link
Member

I am happy with this. @ddfisher, would you mind merging this once you're back from your vacation? It won't require mypy changes (but it enables some that I am going to work on).

@gvanrossum
Copy link
Member

Oh, before merging, please update version in setup.py.

@ilevkivskyi
Copy link
Member Author

@gvanrossum
Copy link
Member

gvanrossum commented Sep 19, 2016 via email

@ddfisher ddfisher merged commit f4495f4 into python:master Sep 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Distinguish between b'x' and 'x' in Python 2
3 participants