Method: pylint.config.arguments_manager._ArgumentsManager.reset_parsers
Calls: 1519, Exceptions: 0, Paths: 1Back
Path 1: 1519 calls (1.0)
'' (1519)
1def reset_parsers(self, usage: str = "") -> None: # pragma: no cover
2 """DEPRECATED."""
3 warnings.warn(
4 "reset_parsers has been deprecated. Parsers should be instantiated "
5 "once during initialization and do not need to be reset.",
6 DeprecationWarning,
7 stacklevel=2,
8 )
9 # configuration file parser
10 self.cfgfile_parser = configparser.ConfigParser(
11 inline_comment_prefixes=("#", ";")
12 )
13 # command line parser
14 self.cmdline_parser = OptionParser(Option, usage=usage)
15 self.cmdline_parser.options_manager = self
16 self._optik_option_attrs = set(self.cmdline_parser.option_class.ATTRS)