diff options
author | Christian Heimes <christian@cheimes.de> | 2013-08-15 16:31:48 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-08-15 16:31:48 (GMT) |
commit | 37d5cebb4816a96785a85db9dcfd8519f30df18b (patch) | |
tree | ba564ce5b55484586db9790b772f5512890bf900 /Modules/sha256module.c | |
parent | f0e521036caea5083e93cd5eca5500b9a1e945ad (diff) | |
download | cpython-37d5cebb4816a96785a85db9dcfd8519f30df18b.zip cpython-37d5cebb4816a96785a85db9dcfd8519f30df18b.tar.gz cpython-37d5cebb4816a96785a85db9dcfd8519f30df18b.tar.bz2 |
Change the builtin hash algorithms' names to lower case names
as promised by hashlib's documentation.
Diffstat (limited to 'Modules/sha256module.c')
-rw-r--r-- | Modules/sha256module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/sha256module.c b/Modules/sha256module.c index 767bfac..e60111a 100644 --- a/Modules/sha256module.c +++ b/Modules/sha256module.c @@ -501,9 +501,9 @@ static PyObject * SHA256_get_name(PyObject *self, void *closure) { if (((SHAobject *)self)->digestsize == 32) - return PyUnicode_FromStringAndSize("SHA256", 6); + return PyUnicode_FromStringAndSize("sha256", 6); else - return PyUnicode_FromStringAndSize("SHA224", 6); + return PyUnicode_FromStringAndSize("sha224", 6); } static PyGetSetDef SHA_getseters[] = { |