From 654b190506bf35a7a2bc32569412c19d80fe8ac2 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Thu, 16 Apr 2015 13:57:00 +0200 Subject: [PATCH] stirp to strip() --- scripts/ezfio_interface/ei_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ezfio_interface/ei_handler.py b/scripts/ezfio_interface/ei_handler.py index a940c584..220d368c 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_.stirp().lower(): + if "true" in str_.strip().lower(): return Type(None, "true", ".True.") - elif "false" in str_.stirp().lower(): + elif "false" in str_.strip().lower(): return Type(None, "false", ".False") else: raise TypeError