Author: gnichols
Date: 2009-12-22 17:59:48 +0000 (Tue, 22 Dec 2009)
New Revision: 274
Modified:
trunk/v7/report.py
Log:
484657 - hts uses code deprecated in python 2.6
Modified: trunk/v7/report.py
===================================================================
--- trunk/v7/report.py 2009-12-22 17:59:18 UTC (rev 273)
+++ trunk/v7/report.py 2009-12-22 17:59:48 UTC (rev 274)
@@ -16,7 +16,7 @@
# The Report object packages and/or presents test results in text, rpm, or html form.
#
-import os,sys,shutil, md5, codecs
+import os,sys,shutil, hashlib, codecs
import string
from v7.tags import Constants, Tags
@@ -410,7 +410,7 @@
returnValue = 0
for line in log:
contents += line
- m=md5.new()
+ m=hashlib.new()
m.update(contents)
sum=int(m.hexdigest(),16)
# YK: write the decimal format result to output.log, not hex
Show replies by date