Method: pylint.checkers.strings.StringConstantChecker._detect_u_string_prefix
Calls: 3160, Exceptions: 0, Paths: 2Back
Path 1: 3135 calls (0.99)
Const (3135)
1def _detect_u_string_prefix(self, node: nodes.Const) -> None:
2 """Check whether strings include a 'u' prefix like u'String'."""
3 if node.kind == "u":
4 self.add_message(
5 "redundant-u-string-prefix",
6 line=node.lineno,
7 col_offset=node.col_offset,
8 )
Path 2: 25 calls (0.01)
Const (25)
1def _detect_u_string_prefix(self, node: nodes.Const) -> None:
2 """Check whether strings include a 'u' prefix like u'String'."""
3 if node.kind == "u":
4 self.add_message(
5 "redundant-u-string-prefix",
6 line=node.lineno,
7 col_offset=node.col_offset,
8 )