summaryrefslogtreecommitdiff
path: root/pylint/utils/utils.py
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-09-25 13:28:08 +0200
committerGitHub <noreply@github.com>2021-09-25 13:28:08 +0200
commit2c0e27330f494856799de9fd9cfb02fa71dacf27 (patch)
tree68090bdfad47cf5208329e7c2dbb77a8fe7a90aa /pylint/utils/utils.py
parentae4e39e986acf73f78b52422c902bcd28cbd985f (diff)
downloadpylint-git-2c0e27330f494856799de9fd9cfb02fa71dacf27.tar.gz
Small py-version improvements (#5069)
* Add py-version requirement to checker docs * Improve default value * Improve option parser error message * Fix py-version help text
Diffstat (limited to 'pylint/utils/utils.py')
-rw-r--r--pylint/utils/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py
index fc89bbacd..3843451d4 100644
--- a/pylint/utils/utils.py
+++ b/pylint/utils/utils.py
@@ -131,7 +131,7 @@ def get_rst_section(section, options, doc=None):
if help_opt:
formatted_help = normalize_text(help_opt, indent=" ")
result += f"{formatted_help}\n"
- if value:
+ if value and optname != "py-version":
value = str(_format_option_value(optdict, value))
result += f"\n Default: ``{value.replace('`` ', '```` ``')}``\n"
return result