Lines 24-30
Link Here
|
24 |
# Dependencies |
24 |
# Dependencies |
25 |
# ------------------------------------------------------------------------ |
25 |
# ------------------------------------------------------------------------ |
26 |
|
26 |
|
27 |
import md5, re, os, os.path |
27 |
import hashlib, re, os, os.path |
28 |
|
28 |
|
29 |
from WebappConfig.debug import OUT |
29 |
from WebappConfig.debug import OUT |
30 |
from WebappConfig.permissions import PermissionMap |
30 |
from WebappConfig.permissions import PermissionMap |
Lines 520-526
Link Here
|
520 |
|
520 |
|
521 |
def file_md5(self, filename): |
521 |
def file_md5(self, filename): |
522 |
''' Return the md5 hash for the file content.''' |
522 |
''' Return the md5 hash for the file content.''' |
523 |
return str(md5.md5(open(filename).read()).hexdigest()) |
523 |
return str(hashlib.md5(open(filename).read()).hexdigest()) |
524 |
|
524 |
|
525 |
def file_time(self, filename): |
525 |
def file_time(self, filename): |
526 |
''' Return the last modification time.''' |
526 |
''' Return the last modification time.''' |