summaryrefslogtreecommitdiffstats
path: root/siplib/descriptors.c
diff options
context:
space:
mode:
Diffstat (limited to 'siplib/descriptors.c')
-rw-r--r--siplib/descriptors.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/siplib/descriptors.c b/siplib/descriptors.c
index 009a03e..1498c44 100644
--- a/siplib/descriptors.c
+++ b/siplib/descriptors.c
@@ -123,13 +123,7 @@ static PyObject *sipMethodDescr_repr(PyObject *self)
{
sipMethodDescr *md = (sipMethodDescr *)self;
- return
-#if PY_MAJOR_VERSION >= 3
- PyUnicode_FromFormat
-#else
- PyString_FromFormat
-#endif
- ("<built-in method %s>", md->pmd->ml_name);
+ return PyUnicode_FromFormat("<built-in method %s>", md->pmd->ml_name);
}