[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public
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

bpo-37053: handle strings like u"bar" correctly in Tools/parser/unparse.py #13583

Merged
merged 3 commits into from May 26, 2019
Merged

Conversation

Copy link
Contributor

yan12125 commented May 26, 2019

Constant.kind is added in https://bugs.python.org/issue36280.
Current possible values for Constant.kind are "u" or None.

For r'bar' and b'bar', Constant.kind value is None, so there's no need
for special handling.

https://bugs.python.org/issue37053

…se.py

Constant.kind is added in https://bugs.python.org/issue36280.
Current possible values for Constant.kind are "u" or None.

For r'bar' and b'bar', Constant.kind value is None, so there's no need
for special handling.
Copy link
Member

pablogsal left a comment

LGTM

Confirmed that this fixes the broken buildbots:

./python -m test test_tools -vvvv -uall -m test_files
== CPython 3.8.0a4+ (heads/master:91f4380ced, May 26 2019, 17:30:21) [GCC 8.3.0]
== Linux-5.0.15-1-MANJARO-x86_64-with-glibc2.29 little-endian
== cwd: /home/pablogsal/github/cpython/build/test_python_25649
== CPU count: 12
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 0.50 [1/1] test_tools
test_files (test.test_tools.test_unparse.DirectoryTestCase) ... Testing /home/pablogsal/github/cpython/Lib/typing.py
Testing /home/pablogsal/github/cpython/Lib/test/test_typing.py
ok


Ran 1 test in 0.586s

OK

== Tests result: SUCCESS ==

1 test OK.

Total duration: 671 ms
Tests result: SUCCESS

The manual check is needed because the CI in GitHub does not run test_tools over all files so it does not take forever.

Copy link
Member

pablogsal left a comment

[Comment deleted as it was tested on a buildbot with a corrupted checkout]

pablogsal self-assigned this May 26, 2019
pablogsal added the 🤖 automerge PR will be merged once it's been approved and all CI passed label May 26, 2019
Copy link
Contributor

miss-islington commented May 26, 2019

@yan12125: Status check is done, and it's a success .

miss-islington merged commit aaf47ca into python:master May 26, 2019
yan12125 deleted the bpo-37053 branch May 26, 2019
Copy link
Contributor Author

yan12125 commented May 26, 2019

Thanks for reviewing!

Copy link
Member

pablogsal commented May 26, 2019

@yan12125 Thanks for the PR and the report! :)

yan12125 pushed a commit to archlinuxcn/repo that referenced this pull request May 26, 2019
This reverts commit 85177d2.

In the last minute, my patch is merged upstream :)

python/cpython#13583
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
…se.py (pythonGH-13583)

Constant.kind is added in https://bugs.python.org/issue36280.
Current possible values for Constant.kind are "u" or None.

For r'bar' and b'bar', Constant.kind value is None, so there's no need
for special handling.


https://bugs.python.org/issue37053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 automerge PR will be merged once it's been approved and all CI passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants