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
