Skip to content
Snippets Groups Projects
Commit 321d3c1d authored by Juan Escobar's avatar Juan Escobar
Browse files

Juan 26/04/2021:read_MNHfile.py, replace "is not" -> "!="

parent 61aa3d19
No related branches found
No related tags found
No related merge requests found
...@@ -250,7 +250,7 @@ def remove_PROC(var): ...@@ -250,7 +250,7 @@ def remove_PROC(var):
def get_group_from_varname(var): def get_group_from_varname(var):
group_name='' group_name=''
for i in range(len(var)): for i in range(len(var)):
if var[i] is not ' ': if var[i] != ' ':
group_name+=var[i] group_name+=var[i]
else: # As soon as the caracter is a blank, the group variable is set else: # As soon as the caracter is a blank, the group variable is set
break break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment