From 881c62b215822fa3dcd79c78e72b761c34032274 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 8 May 2017 21:29:54 +0300 Subject: Don't set tp_new to PyType_GenericNew. --- simplejson/_speedups.c | 2 -- 1 file changed, 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; -- cgit v1.2.1