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