forked from ScoDoc/ScoDoc
removed BoolType
This commit is contained in:
parent
83ee570df9
commit
37839aadd5
@ -6,11 +6,9 @@
|
|||||||
|
|
||||||
E. Viennet 2005 - 2008
|
E. Viennet 2005 - 2008
|
||||||
|
|
||||||
v 1.2
|
v 1.3 (python3)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from types import BooleanType, UnicodeType
|
|
||||||
|
|
||||||
|
|
||||||
def TrivialFormulator(
|
def TrivialFormulator(
|
||||||
form_url,
|
form_url,
|
||||||
@ -740,7 +738,7 @@ def dict2js(d):
|
|||||||
r = []
|
r = []
|
||||||
for k in d:
|
for k in d:
|
||||||
v = d[k]
|
v = d[k]
|
||||||
if type(v) == BooleanType:
|
if isinstance(v, bool):
|
||||||
if v:
|
if v:
|
||||||
v = "true"
|
v = "true"
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user