summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-15 13:21:21 (GMT)
committerGitHub <noreply@github.com>2021-10-15 13:21:21 (GMT)
commit354c35220d25a893e502014478f6739dad6897f3 (patch)
treef9610f948f228ea37c1b5c8a7dd0dc0e2c8f7324 /Modules
parenta7f8dfd25a167ccfde9996c499fa38a2aba60022 (diff)
downloadcpython-354c35220d25a893e502014478f6739dad6897f3.zip
cpython-354c35220d25a893e502014478f6739dad6897f3.tar.gz
cpython-354c35220d25a893e502014478f6739dad6897f3.tar.bz2
bpo-45482: Rename namespaceobject.h to pycore_namespace.h (GH-28975)
Rename Include/namespaceobject.h to Include/internal/pycore_namespace.h. The _testmultiphase extension is now built with the Py_BUILD_CORE_MODULE macro defined to access _PyNamespace_Type. object.c: remove unused "pycore_context.h" include.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testcapimodule.c4
-rw-r--r--Modules/_testmultiphase.c1
-rw-r--r--Modules/timemodule.c1
3 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 7cbd2dc..82cfc04 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -1167,8 +1167,8 @@ test_get_type_qualname(PyObject *self, PyObject *Py_UNUSED(ignored))
assert(strcmp(PyUnicode_AsUTF8(tp_qualname), "int") == 0);
Py_DECREF(tp_qualname);
- tp_qualname = PyType_GetQualName(&_PyNamespace_Type);
- assert(strcmp(PyUnicode_AsUTF8(tp_qualname), "SimpleNamespace") == 0);
+ tp_qualname = PyType_GetQualName(&PyODict_Type);
+ assert(strcmp(PyUnicode_AsUTF8(tp_qualname), "OrderedDict") == 0);
Py_DECREF(tp_qualname);
PyObject *HeapTypeNameType = PyType_FromSpec(&HeapTypeNameType_Spec);
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c
index e0ed77d..2d25e16 100644
--- a/Modules/_testmultiphase.c
+++ b/Modules/_testmultiphase.c
@@ -3,6 +3,7 @@
*/
#include "Python.h"
+#include "pycore_namespace.h" // _PyNamespace_New()
/* State for testing module state access from methods */
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index ca8d62d..0ef3b2f 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -2,6 +2,7 @@
#include "Python.h"
#include "pycore_fileutils.h" // _Py_BEGIN_SUPPRESS_IPH
+#include "pycore_namespace.h" // _PyNamespace_New()
#include <ctype.h>