summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 866ce06..c4634f7 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -402,9 +402,9 @@ PyObject_Unicode(PyObject *v)
PyObject *func;
static PyObject *unicodestr;
- if (v == NULL)
+ if (v == NULL) {
res = PyString_FromString("<NULL>");
- if (PyUnicode_CheckExact(v)) {
+ } else if (PyUnicode_CheckExact(v)) {
Py_INCREF(v);
return v;
}