Skip to content
Snippets Groups Projects
Commit cdf71c86 authored by George Marchment's avatar George Marchment
Browse files

Fix small bug

parent e81608e0
No related branches found
No related tags found
No related merge requests found
Pipeline #14676 failed with stage
in 3 minutes and 52 seconds
...@@ -347,7 +347,10 @@ class Code: ...@@ -347,7 +347,10 @@ class Code:
for r in to_replace: for r in to_replace:
old, new = r old, new = r
self.add_to_ternary_operation_dico(old, new) if(new.strip()!=''):
self.add_to_ternary_operation_dico(old, new)
else:
print(f"old '{old}'", f"new '{new}'")
#Check if there is still a ternary operation in this case we cannot analyse it #Check if there is still a ternary operation in this case we cannot analyse it
for match in re.finditer(pattern, code): for match in re.finditer(pattern, code):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment