summaryrefslogtreecommitdiff
path: root/Modules/sha512module.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/sha512module.c')
-rw-r--r--Modules/sha512module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/sha512module.c b/Modules/sha512module.c
index 17775ae57b..8b2d073e03 100644
--- a/Modules/sha512module.c
+++ b/Modules/sha512module.c
@@ -548,8 +548,7 @@ SHA512Type_update(SHAobject *self, PyObject *obj)
sha512_update(self, buf.buf, buf.len);
PyBuffer_Release(&buf);
- Py_INCREF(Py_None);
- return Py_None;
+ Py_RETURN_NONE;
}
/*[clinic input]
dump buffer