diff options
author | idle sign <idlesign@yandex.ru> | 2016-12-04 11:05:11 +0700 |
---|---|---|
committer | idle sign <idlesign@yandex.ru> | 2016-12-04 11:05:11 +0700 |
commit | a5567b762cfe48a8e5a4aada5a997e5fd8072420 (patch) | |
tree | 0c940964e1673ce731e78dfb1f947585c63c9dff /setuptools/config.py | |
parent | 810eb439a629e1b2bc2d078f138126356e95a9bc (diff) | |
download | external_python_setuptools-a5567b762cfe48a8e5a4aada5a997e5fd8072420.tar.gz external_python_setuptools-a5567b762cfe48a8e5a4aada5a997e5fd8072420.tar.bz2 external_python_setuptools-a5567b762cfe48a8e5a4aada5a997e5fd8072420.zip |
Implemented proper dangling option values support.
Diffstat (limited to 'setuptools/config.py')
-rw-r--r-- | setuptools/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/config.py b/setuptools/config.py index 3546ace9..ef416995 100644 --- a/setuptools/config.py +++ b/setuptools/config.py @@ -70,7 +70,7 @@ class ConfigHandler(object): def _parse_list(cls, value, separator=','): """Represents value as a list. - Value is split either by comma or by lines. + Value is split either by separator (defaults to comma) or by lines. :param value: :param separator: List items separator character. @@ -84,7 +84,7 @@ class ConfigHandler(object): else: value = value.split(separator) - return [chunk.strip() for chunk in value] + return [chunk.strip() for chunk in value if chunk.strip()] @classmethod def _parse_dict(cls, value): |