mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-04-24 15:16:52 -05:00
Adding an exception handler around the unittest import.
original-commit-id: 4de0c12b438cf99e90070e723508ce636278e063
This commit is contained in:
parent
76aab69763
commit
721751dd57
|
|
@ -11,7 +11,10 @@ from bisect import bisect_left, bisect_right
|
|||
from itertools import izip
|
||||
|
||||
#for testing all this crap
|
||||
import unittest2 as unittest
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
if not hasattr(json, "dumps"):
|
||||
json.dumps = json.write
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user