11147:dee6e106b4d3 | 11148:15e30f0c76a8 |
---|---|
73 @rtype re.Pattern | 73 @rtype re.Pattern |
74 """ | 74 """ |
75 # https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting | 75 # https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting |
76 return re.compile( | 76 return re.compile( |
77 r""" | 77 r""" |
78 % # noqa: M601 | 78 % # noqa: M-601 |
79 (?P<spec> | 79 (?P<spec> |
80 % | # raw % character # noqa: M601 | 80 % | # raw % character # noqa: M-601 |
81 (?: | 81 (?: |
82 ([-#0 +]+)? # conversion flags | 82 ([-#0 +]+)? # conversion flags |
83 (?P<minwidth>\d+|\*)? # minimum field width | 83 (?P<minwidth>\d+|\*)? # minimum field width |
84 (?P<precision>\.\d+|\.\*)? # precision | 84 (?P<precision>\.\d+|\.\*)? # precision |
85 [hlL]? # length modifier | 85 [hlL]? # length modifier |
101 @rtype re.Pattern | 101 @rtype re.Pattern |
102 """ | 102 """ |
103 # https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting | 103 # https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting |
104 return re.compile( | 104 return re.compile( |
105 r""" | 105 r""" |
106 % # noqa: M601 | 106 % # noqa: M-601 |
107 \( | 107 \( |
108 (?P<name>.*?) | 108 (?P<name>.*?) |
109 \) | 109 \) |
110 ([-#0 +]+)? # conversion flags | 110 ([-#0 +]+)? # conversion flags |
111 (\d+)? # minimum field width | 111 (\d+)? # minimum field width |
470 self.__error( | 470 self.__error( |
471 msgArg.lineno - 1, | 471 msgArg.lineno - 1, |
472 msgArg.col_offset, | 472 msgArg.col_offset, |
473 "L-112", | 473 "L-112", |
474 modposCount, | 474 modposCount, |
475 "'%'", # noqa: M601 | 475 "'%'", # noqa: M-601 |
476 argCount, | 476 argCount, |
477 ) | 477 ) |
478 return | 478 return |
479 | 479 |
480 def __atModuleLevel(self): | 480 def __atModuleLevel(self): |