mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
Issue #16537: Use the new *default* parameter of max().
This commit is contained in:
parent
14366f3a8e
commit
1d82a9c383
4
setup.py
4
setup.py
|
@ -252,9 +252,7 @@ def build_extensions(self):
|
|||
|
||||
build_ext.build_extensions(self)
|
||||
|
||||
longest = 0
|
||||
if self.extensions:
|
||||
longest = max([len(e.name) for e in self.extensions])
|
||||
longest = max([len(e.name) for e in self.extensions], default=0)
|
||||
if self.failed:
|
||||
longest = max(longest, max([len(name) for name in self.failed]))
|
||||
|
||||
|
|
Loading…
Reference in a new issue