8000 MAINT: Remove Python2 specific C module setup [part2] by sethtroisi · Pull Request #15231 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Remove Python2 specific C module setup [part2] #15231

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
Jan 3, 2020

Conversation

sethtroisi
Copy link
Contributor

Some more python2 cleanups building on #14590

@@ -211,7 +205,7 @@
\tPy_TYPE(&PyFortran_Type) = &PyType_Type;
\timport_array();
\tif (PyErr_Occurred())
\t\t{PyErr_SetString(PyExc_ImportError, \"can't initialize module #modulename# (failed to import numpy)\"); return RETVAL;}
Copy link
Member

Choose a reason for hiding this comment

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

This looks like it should be return NULL, but let's leave that to a follow-up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this pattern repeats in a number of places I have a draft pull to try something new..

Copy link
Member
@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@eric-wieser eric-wieser changed the title DEP: Remove Python2 specific C module setup [part2] MAINT: Remove Python2 specific C module setup [part2] Jan 3, 2020
@seberg
Copy link
Member
seberg commented Jan 3, 2020

LGTM as well, I would be for simply squash merging this one and closing the previous one here.

@eric-wieser
Copy link
Member

CI failure looks unrelated

@seberg seberg merged commit e1aecb0 into numpy:master Jan 3, 2020
@seberg
Copy link
Member
seberg commented Jan 3, 2020

Thanks!

@sethtroisi sethtroisi deleted the remove_python2_retval branch January 3, 2020 21:41
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.

3 participants
0