diff options
author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-09-29 14:33:29 +0200 |
---|---|---|
committer | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-09-29 20:29:37 +0200 |
commit | 8c74530e677ad2e8332f5ab0e7e64516571aae40 (patch) | |
tree | 0f272a4bc8d294855938b31607c81b7cc0559673 /pylint/config/option.py | |
parent | 118c91972562058d85d09cb64537b8c383556790 (diff) | |
download | pylint-git-8c74530e677ad2e8332f5ab0e7e64516571aae40.tar.gz |
Fix empty regex options not converting to regex
Diffstat (limited to 'pylint/config/option.py')
-rw-r--r-- | pylint/config/option.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/config/option.py b/pylint/config/option.py index 5b4ae2eb2..0a9a37069 100644 --- a/pylint/config/option.py +++ b/pylint/config/option.py @@ -78,7 +78,7 @@ VALIDATORS = { "string": utils._unquote, "int": int, "float": float, - "regexp": re.compile, + "regexp": lambda pattern: re.compile(pattern or ""), "regexp_csv": _regexp_csv_validator, "csv": _csv_validator, "yn": _yn_validator, |