From 37839aadd5ace2457da6778525ee656af555863f Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 11 Jul 2021 18:27:02 +0200 Subject: [PATCH] removed BoolType --- app/scodoc/TrivialFormulator.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/scodoc/TrivialFormulator.py b/app/scodoc/TrivialFormulator.py index 1a0eeaf7e..d14d5e6a0 100644 --- a/app/scodoc/TrivialFormulator.py +++ b/app/scodoc/TrivialFormulator.py @@ -6,11 +6,9 @@ E. Viennet 2005 - 2008 - v 1.2 + v 1.3 (python3) """ -from types import BooleanType, UnicodeType - def TrivialFormulator( form_url, @@ -740,7 +738,7 @@ def dict2js(d): r = [] for k in d: v = d[k] - if type(v) == BooleanType: + if isinstance(v, bool): if v: v = "true" else: