The Wayback Machine - https://web.archive.org/web/20211027232421/https://github.com/python/cpython/pull/27935
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

Format the Python-tokenize module and fix exit path #27935

Merged
merged 1 commit into from Aug 25, 2021
Merged

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Aug 24, 2021

No description provided.

@pablogsal
Copy link
Member Author

@pablogsal pablogsal commented Aug 24, 2021

I used clang-format to get a PEP-7 consistent formatting.

@pablogsal
Copy link
Member Author

@pablogsal pablogsal commented Aug 25, 2021

CC: @ambv

if (filename == NULL) {
return NULL;
}
self->tok = PyTokenizer_FromUTF8(source, 1);
if (self->tok == NULL) {
Py_DECREF(filename);
Copy link
Contributor

@ambv ambv Aug 25, 2021

👍🏻

@ambv ambv merged commit 214c2e5 into python:main Aug 25, 2021
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants