diff options
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r-- | Objects/methodobject.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 9606768..a7042ca 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -251,16 +251,8 @@ static Py_hash_t meth_hash(PyCFunctionObject *a) { Py_hash_t x, y; - if (a->m_self == NULL) - x = 0; - else { - x = PyObject_Hash(a->m_self); - if (x == -1) - return -1; - } + x = _Py_HashPointer(a->m_self); y = _Py_HashPointer((void*)(a->m_ml->ml_meth)); - if (y == -1) - return -1; x ^= y; if (x == -1) x = -2; |