8000 bpo-1635741: _sqlite3 uses PyModule_AddObjectRef by erlend-aasland · Pull Request #23148 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-1635741: _sqlite3 uses PyModule_AddObjectRef #23148

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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review comment: Use intermingled variable declarations
  • Loading branch information
Erlend E. Aasland committed Nov 4, 2020
commit 911ee5a3d8d354d41cac21b4593bca1257cb5b39
4 changes: 1 addition & 3 deletions Modules/_sqlite/microprotocols.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,12 @@ static PyObject *psyco_adapters = NULL;
int
pysqlite_microprotocols_init(PyObject *module)
{
int res;

/* create adapters dictionary and put it in module namespace */
if ((psyco_adapters = PyDict_New()) == NULL) {
return -1;
}

res = PyModule_AddObjectRef(module, "adapters", psyco_adapters);
int res = PyModule_AddObjectRef(module, "adapters", psyco_adapters);
Py_DECREF(psyco_adapters);

return res;
Expand Down
0