summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 3f70009..87aa475 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -374,9 +374,9 @@ PyObject_Unicode(PyObject *v)
{
PyObject *res;
- if (v == NULL)
+ if (v == NULL) {
res = PyString_FromString("<NULL>");
- if (PyUnicode_CheckExact(v)) {
+ } else if (PyUnicode_CheckExact(v)) {
Py_INCREF(v);
return v;
}