diff --git a/src/code_.py b/src/code_.py index 349da56b56c09768b98c7a15ffea16a0285a9489..af4784ace02565f244b8a203ba534f6457ef5879 100644 --- a/src/code_.py +++ b/src/code_.py @@ -347,7 +347,10 @@ class Code: for r in to_replace: 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 for match in re.finditer(pattern, code):