Add rule for 3.x comp_for

This commit is contained in:
rocky
2019-04-22 18:42:21 -04:00
parent 0e5eb954b2
commit f1b69a8a28
4 changed files with 23 additions and 3 deletions

View File

@@ -29,6 +29,8 @@ def customize_for_version3(self, version):
TABLE_DIRECT.update({
'except_cond2': ( '%|except %c as %c:\n', 1, 5 ),
'function_def_annotate': ( '\n\n%|def %c%c\n', -1, 0),
'comp_for' : ( ' for %c in %c',
(2, 'store') , (0, 'expr') ),
'importmultiple': ( '%|import %c%c\n', 2, 3 ),
'import_cont' : ( ', %c', 2 ),
'store_locals': ( '%|# inspect.currentframe().f_locals = __locals__\n', ),