bpo-42599: Remove useless PyModule_GetWarningsModule() (GH-23691)

Removed PyModule_GetWarningsModule() which is useless due to 
the _warnings module was converted to a builtin module in 2.6.
This commit is contained in:
Hai Shi 2020-12-08 22:42:42 +08:00 committed by GitHub
parent b6d98c10ff
commit 0f91f586ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 11 deletions

View file

@ -1534,9 +1534,6 @@ PyErr_WriteUnraisable(PyObject *obj)
}
extern PyObject *PyModule_GetWarningsModule(void);
void
PyErr_SyntaxLocation(const char *filename, int lineno)
{