summaryrefslogtreecommitdiff
path: root/Modules/sha256module.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-01-31 23:31:20 -0800
committerBenjamin Peterson <benjamin@python.org>2017-01-31 23:31:20 -0800
commit75a56cd1847142d9c893b6df5fb674f54b34d9ed (patch)
tree73d254a7d8ed4bc2f76293a2b2e223c3f48e7dd4 /Modules/sha256module.c
parentbff21dc9e43eaf9549abe72a32d98a6c20de8c5b (diff)
parentfcd15724f28a5249f13690af32dc12628ab186c6 (diff)
downloadcpython-75a56cd1847142d9c893b6df5fb674f54b34d9ed.tar.gz
merge 3.6 (#29398)
Diffstat (limited to 'Modules/sha256module.c')
-rw-r--r--Modules/sha256module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/sha256module.c b/Modules/sha256module.c
index 8f067f182c..e4cb3286ce 100644
--- a/Modules/sha256module.c
+++ b/Modules/sha256module.c
@@ -483,8 +483,7 @@ SHA256Type_update(SHAobject *self, PyObject *obj)
sha_update(self, buf.buf, buf.len);
PyBuffer_Release(&buf);
- Py_INCREF(Py_None);
- return Py_None;
+ Py_RETURN_NONE;
}
static PyMethodDef SHA_methods[] = {