From 0f91f586ae9b76c3bb44559bd8cd473b1b8de5ff Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Tue, 8 Dec 2020 22:42:42 +0800 Subject: 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. --- Python/errors.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'Python/errors.c') diff --git a/Python/errors.c b/Python/errors.c index 8242ac6978..213108f681 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -1534,9 +1534,6 @@ PyErr_WriteUnraisable(PyObject *obj) } -extern PyObject *PyModule_GetWarningsModule(void); - - void PyErr_SyntaxLocation(const char *filename, int lineno) { -- cgit v1.2.1