diff --git a/scripts/ezfio_interface/ei_handler.py b/scripts/ezfio_interface/ei_handler.py index a02b13d5..a940c584 100755 --- a/scripts/ezfio_interface/ei_handler.py +++ b/scripts/ezfio_interface/ei_handler.py @@ -70,9 +70,9 @@ def is_bool(str_): Take a string, if is a bool return the conversion into fortran and ocaml. """ - if "true" in str_.lower(): + if "true" in str_.stirp().lower(): return Type(None, "true", ".True.") - elif "false" in str_.lower(): + elif "false" in str_.stirp().lower(): return Type(None, "false", ".False") else: raise TypeError