Skip to content

Commit 07b01dd

Browse files
[cleanup] Remove behavior that is in argparse already
``` 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) ```
1 parent 9833848 commit 07b01dd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pylint/config/arguments_manager.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,9 @@ def _parse_command_line_configuration(
225225
self, arguments: Sequence[str] | None = None
226226
) -> list[str]:
227227
"""Parse the arguments found on the command line into the namespace."""
228-
arguments = sys.argv[1:] if arguments is None else arguments
229-
230228
self.config, parsed_args = self._arg_parser.parse_known_args(
231229
arguments, self.config
232230
)
233-
234231
return parsed_args
235232

236233
def _generate_config(

0 commit comments

Comments
 (0)