diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-11-30 10:17:23 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-11-30 10:17:23 -0600 |
commit | 671e2b1289950586723078b3b29d14c9631ac140 (patch) | |
tree | e654ec57081633699c54cc9a4177f91d4e864e93 | |
parent | 3d8e7a17769436a099360ad925de1968994f1b49 (diff) |
md5 -> hashlib
-rw-r--r-- | extras/crystal.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index 32c2f7d4d..5f5026a23 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # utilities to help disassemble pokémon crystal -import sys, os, inspect, md5, json +import sys, os, inspect, hashlib, json from copy import copy, deepcopy import subprocess from new import classobj @@ -7971,7 +7971,9 @@ class TestCram(unittest.TestCase): "ROM file must have the correct md5 sum" rom = self.rom correct = "9f2922b235a5eeb78d65594e82ef5dde" - md5sum = md5.md5(rom).hexdigest() + md5 = hashlib.md5() + md5.update(rom) + md5sum = md5.hexdigest() self.assertEqual(md5sum, correct) def test_bizarre_http_presence(self): |