mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Adding an exception handler around the unittest import.
This commit is contained in:
parent
7b3b1f11b2
commit
4de0c12b43
@ -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