Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-86493: Modernize modules initialization code#106858
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1498,15 +1498,7 @@ _lzma__decode_filter_properties_impl(PyObject *module, lzma_vli filter_id, | ||
| static int | ||
| module_add_int_constant(PyObject *m, const char *name, long long value) | ||
| { | ||
| PyObject *o = PyLong_FromLongLong(value); | ||
| if (o == NULL){ | ||
| return -1; | ||
| } | ||
| if (PyModule_AddObject(m, name, o) == 0){ | ||
| return 0; | ||
| } | ||
| Py_DECREF(o); | ||
| return -1; | ||
Comment on lines -1505 to -1509 MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is very confusing code with inverse logic. I thought there was a bug. | ||
| return PyModule_Add(m, name, PyLong_FromLongLong(value)); | ||
| } | ||
| static int | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.