mirror of https://github.com/python/cpython
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 @@ class PyBuildExt(build_ext):
|
|||
|
||||
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 New Issue