mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
ANSIfy functions that were hiding inside a macro.
This commit is contained in:
parent
8a3ebf8ca8
commit
c307352027
1 changed files with 1 additions and 1 deletions
|
|
@ -1314,7 +1314,7 @@ instance_coerce(PyObject **pv, PyObject **pw)
|
|||
|
||||
|
||||
#define UNARY(funcname, methodname) \
|
||||
static PyObject *funcname(self) PyInstanceObject *self; { \
|
||||
static PyObject *funcname(PyInstanceObject *self) { \
|
||||
static PyObject *o; \
|
||||
if (o == NULL) o = PyString_InternFromString(methodname); \
|
||||
return generic_unary_op(self, o); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue