Show More
@@ -64,10 +64,6 b" if os.name == 'nt':" | |||||
64 | else: |
|
64 | else: | |
65 | from . import posix as platform |
|
65 | from . import posix as platform | |
66 |
|
66 | |||
67 | md5 = hashlib.md5 |
|
|||
68 | sha1 = hashlib.sha1 |
|
|||
69 | sha256 = hashlib.sha256 |
|
|||
70 | sha512 = hashlib.sha512 |
|
|||
71 | _ = i18n._ |
|
67 | _ = i18n._ | |
72 |
|
68 | |||
73 | cachestat = platform.cachestat |
|
69 | cachestat = platform.cachestat | |
@@ -138,9 +134,9 b' def safehasattr(thing, attr):' | |||||
138 | return getattr(thing, attr, _notset) is not _notset |
|
134 | return getattr(thing, attr, _notset) is not _notset | |
139 |
|
135 | |||
140 | DIGESTS = { |
|
136 | DIGESTS = { | |
141 | 'md5': md5, |
|
137 | 'md5': hashlib.md5, | |
142 | 'sha1': sha1, |
|
138 | 'sha1': hashlib.sha1, | |
143 | 'sha512': sha512, |
|
139 | 'sha512': hashlib.sha512, | |
144 | } |
|
140 | } | |
145 | # List of digest types from strongest to weakest |
|
141 | # List of digest types from strongest to weakest | |
146 | DIGESTS_BY_STRENGTH = ['sha512', 'sha1', 'md5'] |
|
142 | DIGESTS_BY_STRENGTH = ['sha512', 'sha1', 'md5'] |
General Comments 0
You need to be logged in to leave comments.
Login now