Fix "with as" indenting and decorated "async def"

Misc other improvements: make check-short now is short
This commit is contained in:
rocky
2019-12-18 09:14:09 -05:00
parent 8470bded59
commit e39c6c7f0a
7 changed files with 161 additions and 85 deletions

View File

@@ -49,7 +49,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),
}
)