summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-12-08 22:42:42 +0800
committerGitHub <noreply@github.com>2020-12-08 15:42:42 +0100
commit0f91f586ae9b76c3bb44559bd8cd473b1b8de5ff (patch)
tree9772c6ff798edc8333160b9d587b5a0a9691391a /Python/errors.c
parentb6d98c10fff6f320f8fdf595c3f9a05d8be4e31d (diff)
downloadcpython-git-0f91f586ae9b76c3bb44559bd8cd473b1b8de5ff.tar.gz
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.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c3
1 files changed, 0 insertions, 3 deletions
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)
{