From cde2e7c78f142299aa5de69c0771ab3a8074f343 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Mon, 5 Sep 2011 10:25:33 -1000 Subject: [PATCH] use hashlib instead of md5; md5 isn't bundled with the current release of mcedit :( --- infiniteworld.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infiniteworld.py b/infiniteworld.py index cba92a4..c541258 100644 --- a/infiniteworld.py +++ b/infiniteworld.py @@ -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):