mirror of
https://github.com/LCPQ/quantum_package
synced 2024-06-25 22:52:15 +02:00
stirp to strip()
This commit is contained in:
parent
74c9e03e2a
commit
654b190506
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user