summaryrefslogtreecommitdiff
path: root/Modules/clinic/_struct.c.h
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2020-11-19 22:47:57 +0900
committerGitHub <noreply@github.com>2020-11-19 22:47:57 +0900
commit56e190d749fb6acee832e358c1121ece83b13346 (patch)
tree49309f502a12cfece7b30190f3f36a8ab1143d46 /Modules/clinic/_struct.c.h
parentcfeb5437a8910e28726422a14a93a36584e32238 (diff)
downloadcpython-git-revert-23398-bpo-1635741-struct.tar.gz
Revert "bpo-1635741: Port _struct to multiphase initialization (GH-23398)"revert-23398-bpo-1635741-struct
This reverts commit cfeb5437a8910e28726422a14a93a36584e32238.
Diffstat (limited to 'Modules/clinic/_struct.c.h')
-rw-r--r--Modules/clinic/_struct.c.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/clinic/_struct.c.h b/Modules/clinic/_struct.c.h
index b0c1eb4587..1cfaef3b71 100644
--- a/Modules/clinic/_struct.c.h
+++ b/Modules/clinic/_struct.c.h
@@ -199,7 +199,7 @@ calcsize(PyObject *module, PyObject *arg)
PyStructObject *s_object = NULL;
Py_ssize_t _return_value;
- if (!cache_struct_converter(module, arg, &s_object)) {
+ if (!cache_struct_converter(arg, &s_object)) {
goto exit;
}
_return_value = calcsize_impl(module, s_object);
@@ -241,7 +241,7 @@ unpack(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
if (!_PyArg_CheckPositional("unpack", nargs, 2, 2)) {
goto exit;
}
- if (!cache_struct_converter(module, args[0], &s_object)) {
+ if (!cache_struct_converter(args[0], &s_object)) {
goto exit;
}
if (PyObject_GetBuffer(args[1], &buffer, PyBUF_SIMPLE) != 0) {
@@ -297,7 +297,7 @@ unpack_from(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
if (!args) {
goto exit;
}
- if (!cache_struct_converter(module, args[0], &s_object)) {
+ if (!cache_struct_converter(args[0], &s_object)) {
goto exit;
}
if (PyObject_GetBuffer(args[1], &buffer, PyBUF_SIMPLE) != 0) {
@@ -364,7 +364,7 @@ iter_unpack(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
if (!_PyArg_CheckPositional("iter_unpack", nargs, 2, 2)) {
goto exit;
}
- if (!cache_struct_converter(module, args[0], &s_object)) {
+ if (!cache_struct_converter(args[0], &s_object)) {
goto exit;
}
buffer = args[1];
@@ -376,4 +376,4 @@ exit:
return return_value;
}
-/*[clinic end generated code: output=a3d3cd900091cb1c input=a9049054013a1b77]*/
+/*[clinic end generated code: output=8089792d8ed0c1be input=a9049054013a1b77]*/