Skip to content

Commit 12c7a0c

Browse files
committed
Remove type as cls
1 parent 48c2acb commit 12c7a0c

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

Modules/clinic/zlibmodule.c.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/zlibmodule.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,8 +1714,6 @@ zlib__ZlibDecompressor_decompress_impl(ZlibDecompressor *self,
17141714
/*[clinic input]
17151715
@classmethod
17161716
zlib._ZlibDecompressor.__new__
1717-
1718-
type as cls: self
17191717
wbits: int(c_default='MAX_WBITS') = MAX_WBITS
17201718
zdict: object(c_default='NULL') = b''
17211719
The predefined compression dictionary. This is a sequence of bytes
@@ -1729,11 +1727,11 @@ Create a decompressor object for decompressing data incrementally.
17291727
[clinic start generated code]*/
17301728

17311729
static PyObject *
1732-
zlib__ZlibDecompressor_impl(PyTypeObject *cls, int wbits, PyObject *zdict)
1733-
/*[clinic end generated code: output=9f1bf6d28029c5de input=8bffe63eef8a6d63]*/
1730+
zlib__ZlibDecompressor_impl(PyTypeObject *type, int wbits, PyObject *zdict)
1731+
/*[clinic end generated code: output=1065607df0d33baa input=710ad488cf0950a5]*/
17341732
{
1735-
zlibstate *state = PyType_GetModuleState(cls);
1736-
ZlibDecompressor *self = PyObject_New(ZlibDecompressor, cls);
1733+
zlibstate *state = PyType_GetModuleState(type);
1734+
ZlibDecompressor *self = PyObject_New(ZlibDecompressor, type);
17371735
if (self == NULL) {
17381736
return NULL;
17391737
}

0 commit comments

Comments
 (0)