id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
7836	SHA module deprecated warning fix	anonymous	kisielk	Hi,\r\n\r\nEnclosed you will find a fix for the SHA deprecated warning.\r\n{{{\r\n#!python\r\n--- tracmath.py_(revision 248)\r\n+++ tracmath.py_(revision 249)\r\n@@ -5,7 +5,7 @@\r\n \r\n import codecs\r\n import re\r\n-import sha\r\n+import hashlib \r\n from cStringIO import StringIO\r\n import os\r\n import sys\r\n@@ -142,7 +142,7 @@\r\n             if m:\r\n                 label = m.group(1)\r\n \r\n-        key = sha.new(content.encode('utf-8')).hexdigest()\r\n+        key = hashlib.sha1(content.encode('utf-8')).hexdigest()\r\n \r\n         imgname = key + '.png'\r\n         imgpath = os.path.join(self.cacheDirectory, imgname)\r\n\r\n}}}\r\n\r\nregards\r\n\r\nMario	defect	closed	normal	TracMathPlugin	normal	fixed			0.12
