mirror of
https://github.com/python/cpython
synced 2026-09-29 10:35:30 +03:00
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
This commit is contained in:
parent
99170a5dbf
commit
90aa7646af
144 changed files with 1306 additions and 1153 deletions
|
|
@ -340,7 +340,7 @@ MD5_copy(MD5object *self, PyObject *unused)
|
|||
{
|
||||
MD5object *newobj;
|
||||
|
||||
if (Py_Type(self) == &MD5type) {
|
||||
if (Py_TYPE(self) == &MD5type) {
|
||||
if ( (newobj = newMD5object())==NULL)
|
||||
return NULL;
|
||||
} else {
|
||||
|
|
@ -552,7 +552,7 @@ init_md5(void)
|
|||
{
|
||||
PyObject *m;
|
||||
|
||||
Py_Type(&MD5type) = &PyType_Type;
|
||||
Py_TYPE(&MD5type) = &PyType_Type;
|
||||
if (PyType_Ready(&MD5type) < 0)
|
||||
return;
|
||||
m = Py_InitModule("_md5", MD5_functions);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue