Skip to content

Add two missing error checks in hamt.c #5851

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

Merged
merged 2 commits into from
Mar 8, 2018

Conversation

zhangyangyu
Copy link
Member

No description provided.

Python/hamt.c Outdated
if (child_node == (PyHamtNode *)self) {
if (child_node == NULL) {
return NULL;
} else if (child_node == (PyHamtNode *)self) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reformat to

}
else if ...

(per PEP-7)

Copy link
Member

@1st1 1st1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except one nit. Thanks!

@zhangyangyu zhangyangyu merged commit 3c7ac7e into python:master Mar 8, 2018
@miss-islington
Copy link
Contributor

Thanks @zhangyangyu for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@zhangyangyu zhangyangyu deleted the hamt_error_check branch March 8, 2018 05:59
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 8, 2018
(cherry picked from commit 3c7ac7e)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
@bedevere-bot
Copy link

GH-6025 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Mar 8, 2018
(cherry picked from commit 3c7ac7e)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
jo2y pushed a commit to jo2y/cpython that referenced this pull request Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants