Explorar o código

flakepp: fixes print regex

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
fb4733028d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contrib/release/flakeplus.py

+ 1 - 1
contrib/release/flakeplus.py

@@ -18,7 +18,7 @@ RE_MULTILINE_COMMENT_S = r'^\s*(?:\'\'\'|""")'
 RE_MULTILINE_COMMENT_E = r'(?:^|.+?)(?:\'\'\'|""")'
 RE_WITH = r'(?:^|\s+)with\s+'
 RE_WITH_IMPORT = r'''from\s+ __future__\s+ import\s+ with_statement'''
-RE_PRINT = r'''(?:^|\s+)print\((?:"|')\W+?[A-Z0-9:]{2,}'''
+RE_PRINT = r'''(?:^|\s+)print\((?:"|')(?:\W+?)?[A-Z0-9:]{2,}'''
 RE_ABS_IMPORT = r'''from\s+ __future__\s+ import\s+ absolute_import'''
 
 acc = defaultdict(lambda: {"abs": False, "print": False})