Issue #16537: Use the new *default* parameter of max().

This commit is contained in:
Berker Peksag 2014-10-01 05:11:13 +03:00
parent 14366f3a8e
commit 1d82a9c383
1 changed files with 1 additions and 3 deletions

View File

@ -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]))