Skip to content

Add two missing error checks in hamt.c#5851

Merged
zhangyangyu merged 2 commits into
python:masterfrom
zhangyangyu:hamt_error_check
Mar 8, 2018
Merged

Add two missing error checks in hamt.c#5851
zhangyangyu merged 2 commits into
python:masterfrom
zhangyangyu:hamt_error_check

Conversation

@zhangyangyu

Copy link
Copy Markdown
Member

No description provided.

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

Copy link
Copy Markdown
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)

@1st1 1st1 left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown

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