r92524 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92523‎ | r92524 | r92525 >
Date:11:36, 19 July 2011
Author:ariel
Status:deferred
Tags:
Comment:
use hashlib instead of deprecated md5 module
Modified paths:
  • /branches/ariel/xmldumps-backup/worker.py (modified) (history)

Diff [purge]

Index: branches/ariel/xmldumps-backup/worker.py
@@ -1,7 +1,7 @@
22 # Worker process, does the actual dumping
33
44 import getopt
5 -import md5
 5+import hashlib
66 import os
77 import popen2
88 import re
@@ -760,7 +760,7 @@
761761 return (self.dumpDir.publicPath(self.getChecksumFileNameBasename() + "." + self.timestamp + ".tmp"))
762762
763763 def _md5File(self, filename):
764 - summer = md5.new()
 764+ summer = hashlib.md5()
765765 infile = file(filename, "rb")
766766 bufsize = 4192 * 32
767767 buffer = infile.read(bufsize)

Status & tagging log