summaryrefslogtreecommitdiff
path: root/src/flake8/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/flake8/utils.py')
-rw-r--r--src/flake8/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/flake8/utils.py b/src/flake8/utils.py
index 02f0607..cf88648 100644
--- a/src/flake8/utils.py
+++ b/src/flake8/utils.py
@@ -39,6 +39,10 @@ def parse_comma_separated_list(value, regexp=COMMA_SEPARATED_LIST_RE):
:rtype:
list
"""
+ assert isinstance( # nosec (for bandit)
+ value, (string_types, type(None))
+ ), value
+
if not value:
return []