mirror of
https://github.com/python/cpython.git
synced 2025-08-18 15:51:23 +00:00
unparse.py: fix mispaced parentheses in chained comparisons
This commit is contained in:
parent
ce3742c693
commit
0187be0825
2 changed files with 5 additions and 1 deletions
|
@ -388,7 +388,7 @@ class Unparser:
|
|||
for o, e in zip(t.ops, t.comparators):
|
||||
self.write(" " + self.cmpops[o.__class__.__name__] + " ")
|
||||
self.dispatch(e)
|
||||
self.write(")")
|
||||
self.write(")")
|
||||
|
||||
boolops = {_ast.And: 'and', _ast.Or: 'or'}
|
||||
def _BoolOp(self, t):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue