Exemple #1
0
 def str_protected_child(self, child, parent):
     return ("(%s)" %
             self.from_expr(child)) if m2_expr.should_parenthesize_child(
                 child, parent) else self.from_expr(child)
Exemple #2
0
 def str_protected_child(self, child, parent):
     return ("(%s)" % (
         self.from_expr(child)) if m2_expr.should_parenthesize_child(child, parent)
             else self.from_expr(child)
     )