use hashlib instead of md5; md5 isn't bundled with the current release of mcedit :(

This commit is contained in:
David Vierra 2011-09-05 10:25:33 -10:00
parent ea80eefc1b
commit cde2e7c78f

View File

@ -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):