mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-04-03 23:44:56 -05:00
md5 -> hashlib
original-commit-id: 671e2b1289950586723078b3b29d14c9631ac140
This commit is contained in:
parent
a21b183757
commit
e15fcc4fd8
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user