-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update swift-rpathize.py to work with Python 3.8 and Python 2.7 #34332
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
Conversation
In Python 2, str() is also a kind of bytes blob In Python 3, str() is a Unicode string that's unrelated
@swift-ci Python lint |
@swift-ci Please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. This seems reasonable to me.
Python-lint correctly warns about single-character variables that can be confused with numbers
Build failed |
macOS CI seems to be having problems apparently unrelated to this PR. I'll resubmit. |
@swift-ci Please test macOS |
Build failed |
@swift-ci Please test macOS |
Build failed |
@swift-ci Please test macOS |
Build failed |
@swift-ci Please test macOS |
Build failed |
@swift-ci Please clean test macOS |
Just need to explicitly convert the bytes blob into a real string before trying to pattern-match.
(In Python 2, str() and bytes are basically the same, so it's a lot more forgiving of such mixups.)