You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Adding an exception handler around the unittest import.
This commit is contained in:
@@ -11,7 +11,10 @@ from bisect import bisect_left, bisect_right
|
|||||||
from itertools import izip
|
from itertools import izip
|
||||||
|
|
||||||
#for testing all this crap
|
#for testing all this crap
|
||||||
import unittest2 as unittest
|
try:
|
||||||
|
import unittest2 as unittest
|
||||||
|
except ImportError:
|
||||||
|
import unittest
|
||||||
|
|
||||||
if not hasattr(json, "dumps"):
|
if not hasattr(json, "dumps"):
|
||||||
json.dumps = json.write
|
json.dumps = json.write
|
||||||
|
Reference in New Issue
Block a user