summaryrefslogtreecommitdiffstats
path: root/deluge/argparserbase.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2022-02-13 12:31:41 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2022-02-13 13:38:27 +0000
commit2ec6e10c8eb87a6f4e2a49afd58485adb13702a5 (patch)
tree042411bdc547f8b7f002b29b6765eff82e425957 /deluge/argparserbase.py
parent2bd095e5bfc49cbe178fc0ba9df38b88afc238aa (diff)
downloaddeluge-2ec6e10c8eb87a6f4e2a49afd58485adb13702a5.tar.gz
deluge-2ec6e10c8eb87a6f4e2a49afd58485adb13702a5.tar.bz2
deluge-2ec6e10c8eb87a6f4e2a49afd58485adb13702a5.zip
[Lint] Update linter version and fix issues
Notable changes: * Prettier >=2.3 with more consistent js assignments * Black now formats docstrings * Added isort to list of autoformaters * Update flake8 config for v4 Ref: https://prettier.io/blog/2021/05/09/2.3.0.html
Diffstat (limited to 'deluge/argparserbase.py')
-rw-r--r--deluge/argparserbase.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/deluge/argparserbase.py b/deluge/argparserbase.py
index 45417ee31..5dc433086 100644
--- a/deluge/argparserbase.py
+++ b/deluge/argparserbase.py
@@ -106,8 +106,8 @@ class DelugeTextHelpFormatter(argparse.RawDescriptionHelpFormatter):
line instead. This way list formatting is not mangled by textwrap.wrap.
"""
wrapped_lines = []
- for l in text.splitlines():
- wrapped_lines.extend(textwrap.wrap(l, width, subsequent_indent=' '))
+ for line in text.splitlines():
+ wrapped_lines.extend(textwrap.wrap(line, width, subsequent_indent=' '))
return wrapped_lines
def _format_action_invocation(self, action):
@@ -199,7 +199,7 @@ class ArgParserBase(argparse.ArgumentParser):
self.group.add_argument(
'-L',
'--loglevel',
- choices=[l for k in deluge.log.levels for l in (k, k.upper())],
+ choices=[level for k in deluge.log.levels for level in (k, k.upper())],
help=_('Set the log level (none, error, warning, info, debug)'),
metavar='<level>',
)