use hashlib instead of md5; md5 isn't bundled with the current release of mcedit :(
This commit is contained in:
parent
ea80eefc1b
commit
cde2e7c78f
@ -167,8 +167,8 @@ this way.
|
|||||||
def checksumForVersion(self, v):
|
def checksumForVersion(self, v):
|
||||||
jf = self.jarfileForVersion(v)
|
jf = self.jarfileForVersion(v)
|
||||||
with file(jf, "rb") as f:
|
with file(jf, "rb") as f:
|
||||||
import md5
|
import hashlib
|
||||||
return (md5.md5(f.read()).hexdigest())
|
return (hashlib.md5(f.read()).hexdigest())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def latestVersion(self):
|
def latestVersion(self):
|
||||||
|
Reference in New Issue
Block a user