Skip to content

Commit 3a661a3

Browse files
committed
address Victor's review
1 parent d78434e commit 3a661a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Objects/typeobject.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ _PyType_Name(PyTypeObject *type)
13311331
return s;
13321332
}
13331333

1334-
static inline PyObject *
1334+
static PyObject *
13351335
type_name(PyObject *tp, void *Py_UNUSED(closure))
13361336
{
13371337
PyTypeObject *type = PyTypeObject_CAST(tp);
@@ -1344,7 +1344,7 @@ type_name(PyObject *tp, void *Py_UNUSED(closure))
13441344
}
13451345
}
13461346

1347-
static inline PyObject *
1347+
static PyObject *
13481348
type_qualname(PyObject *tp, void *Py_UNUSED(closure))
13491349
{
13501350
PyTypeObject *type = PyTypeObject_CAST(tp);
@@ -1466,7 +1466,7 @@ _PyType_GetFullyQualifiedName(PyTypeObject *type, char sep)
14661466
return PyUnicode_FromString(type->tp_name);
14671467
}
14681468

1469-
PyObject *qualname = type_qualname((PyObject *)type, NULL);
1469+
PyObject *qualname = Py_NewRef(((PyHeapTypeObject *)type)->ht_qualname);
14701470
if (qualname == NULL) {
14711471
return NULL;
14721472
}
@@ -1498,7 +1498,7 @@ PyType_GetFullyQualifiedName(PyTypeObject *type)
14981498
return _PyType_GetFullyQualifiedName(type, '.');
14991499
}
15001500

1501-
static inline PyObject *
1501+
static PyObject *
15021502
type_abstractmethods(PyObject *tp, void *Py_UNUSED(closure))
15031503
{
15041504
PyTypeObject *type = PyTypeObject_CAST(tp);

0 commit comments

Comments
 (0)