18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# might have been queried from the widgets.
#
#-- reading and writing json (for the config module) ----------------------------------
import sys
if sys.version_info > (2, 9):
unicode = str
#dict.iteritems = dict.items
# try to load the system module first
try:
from json import dump as json_dump, load as json_load
except:
print("no native Python JSON module")
|
<
|
<
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# might have been queried from the widgets.
#
#-- reading and writing json (for the config module) ----------------------------------
import sys
from compat2and3 import unicode
# try to load the system module first
try:
from json import dump as json_dump, load as json_load
except:
print("no native Python JSON module")
|