(expr, type_, sc_expr_str_fn)
| 6445 | |
| 6446 | |
| 6447 | def _parenthesize(expr, type_, sc_expr_str_fn): |
| 6448 | # expr_str() helper. Adds parentheses around expressions of type 'type_'. |
| 6449 | |
| 6450 | if expr.__class__ is tuple and expr[0] is type_: |
| 6451 | return "({})".format(expr_str(expr, sc_expr_str_fn)) |
| 6452 | return expr_str(expr, sc_expr_str_fn) |
| 6453 | |
| 6454 | |
| 6455 | def _ordered_unique(lst): |