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):
|
||||
jf = self.jarfileForVersion(v)
|
||||
with file(jf, "rb") as f:
|
||||
import md5
|
||||
return (md5.md5(f.read()).hexdigest())
|
||||
import hashlib
|
||||
return (hashlib.md5(f.read()).hexdigest())
|
||||
|
||||
@property
|
||||
def latestVersion(self):
|
||||
|
Reference in New Issue
Block a user