Visitar URL original
gh-91524: Speed up the regular expression substitution by serhiy-storchaka · Pull Request #91525 · python/cpython · GitHub
Skip to content
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
correct mis-merge in import()
  • Loading branch information
gpshead committed Oct 23, 2022
commit 7ab7ade481109ccc42856c97010f52cdf4254200
4 changes: 0 additions & 4 deletions Modules/_sre/sre.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,13 +757,9 @@ import(const char* module, const char* function)
{
PyObject* func;

name = PyUnicode_FromString(module);
if (!name)
return NULL;
func = _PyImport_GetModuleAttrString(module, function);
if (!func)
return NULL;
Py_DECREF(mod);
return func;
}

Expand Down