Skip to content

Commit

Permalink
[cleanup] Remove behavior that is in argparse already
Browse files Browse the repository at this point in the history
```
    def parse_known_args(self, args=None, namespace=None):
        if args is None:
            # args default to the system args
            args = _sys.argv[1:]
        else:
            # make sure that args are mutable
            args = list(args)
```
  • Loading branch information
Pierre-Sassoulas committed Sep 30, 2023
1 parent 9833848 commit 07b01dd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pylint/config/arguments_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,9 @@ def _parse_command_line_configuration(
self, arguments: Sequence[str] | None = None
) -> list[str]:
"""Parse the arguments found on the command line into the namespace."""
arguments = sys.argv[1:] if arguments is None else arguments

self.config, parsed_args = self._arg_parser.parse_known_args(
arguments, self.config
)

return parsed_args

def _generate_config(
Expand Down

0 comments on commit 07b01dd

Please sign in to comment.