Index: branches/ariel/xmldumps-backup/worker.py |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | # Worker process, does the actual dumping |
3 | 3 | |
4 | 4 | import getopt |
5 | | -import md5 |
| 5 | +import hashlib |
6 | 6 | import os |
7 | 7 | import popen2 |
8 | 8 | import re |
— | — | @@ -760,7 +760,7 @@ |
761 | 761 | return (self.dumpDir.publicPath(self.getChecksumFileNameBasename() + "." + self.timestamp + ".tmp")) |
762 | 762 | |
763 | 763 | def _md5File(self, filename): |
764 | | - summer = md5.new() |
| 764 | + summer = hashlib.md5() |
765 | 765 | infile = file(filename, "rb") |
766 | 766 | bufsize = 4192 * 32 |
767 | 767 | buffer = infile.read(bufsize) |