Code

Ticket #8647: hashcompat.py.diff

File hashcompat.py.diff, 478 bytes (added by sammyrulez, 5 years ago)
Line 
1--- C:\DOCUME~1\SREGHE~1\IMPOST~1\Temp\hashcompat.py-revBASE.svn002.tmp.py      mar nov 25 15:00:51 2008
2+++ C:\WORK\libs\djtrunk\django\utils\hashcompat.py     mar nov 25 14:24:12 2008
3@@ -9,8 +9,10 @@
4     import hashlib
5     md5_constructor = hashlib.md5
6     sha_constructor = hashlib.sha1
7+    sha256_constructor = hashlib.sha256
8 except ImportError:
9     import md5
10     md5_constructor = md5.new
11     import sha
12     sha_constructor = sha.new
13+    sha256_constructor = sha.new