"with .. as" with tuples need parens in 3.0 so always add ().

This commit is contained in:
rocky
2020-01-08 12:02:34 -05:00
parent a98bc444f7
commit 7d24910b3c

View File

@@ -53,7 +53,7 @@ def customize_for_version3(self, version):
"raise_stmt2": ("%|raise %c from %c\n", 0, 1),
"store_locals": ("%|# inspect.currentframe().f_locals = __locals__\n",),
"withstmt": ("%|with %c:\n%+%c%-", 0, 3),
"withasstmt": ("%|with %c as %c:\n%+%c%-", 0, 2, 3),
"withasstmt": ("%|with %c as (%c):\n%+%c%-", 0, 2, 3),
}
)