summaryrefslogtreecommitdiff
path: root/setuptools/config/_apply_pyprojecttoml.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-03-27 16:57:26 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-03-27 17:07:48 +0100
commit603bb9852f3a6a53c97beaccc9f58dc47771a486 (patch)
treecd341f56a70f4551d583ece22d70e087630f3ac7 /setuptools/config/_apply_pyprojecttoml.py
parent2304d9992b74c3080955563cac24af0670db652b (diff)
downloadpython-setuptools-git-603bb9852f3a6a53c97beaccc9f58dc47771a486.tar.gz
Fix previous detection of empty arrays
Diffstat (limited to 'setuptools/config/_apply_pyprojecttoml.py')
-rw-r--r--setuptools/config/_apply_pyprojecttoml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/config/_apply_pyprojecttoml.py b/setuptools/config/_apply_pyprojecttoml.py
index 5d34cdb7..fce5c40e 100644
--- a/setuptools/config/_apply_pyprojecttoml.py
+++ b/setuptools/config/_apply_pyprojecttoml.py
@@ -303,7 +303,7 @@ def _some_attrgetter(*items):
"""
def _acessor(obj):
values = (_attrgetter(i)(obj) for i in items)
- return next((i for i in values if i), None)
+ return next((i for i in values if i is not None), None)
return _acessor