summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-05-08 21:29:54 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2017-05-08 21:29:54 +0300
commit881c62b215822fa3dcd79c78e72b761c34032274 (patch)
treec3b7ba0f3887e797c51fbb3c2c0b78275d11deb7
parent60b293d3449491264a83c7ed9d5f4a0aba4db989 (diff)
downloadsimplejson-remove-init-methods.tar.gz
Don't set tp_new to PyType_GenericNew.remove-init-methods
-rw-r--r--simplejson/_speedups.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
index 5ea8c46..212616a 100644
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -3336,10 +3336,8 @@ static PyObject *
moduleinit(void)
{
PyObject *m;
- PyScannerType.tp_new = PyType_GenericNew;
if (PyType_Ready(&PyScannerType) < 0)
return NULL;
- PyEncoderType.tp_new = PyType_GenericNew;
if (PyType_Ready(&PyEncoderType) < 0)
return NULL;