#1513299: cleanup some map() uses where a comprehension works better.

This commit is contained in:
Georg Brandl 2010-12-04 10:39:14 +00:00
parent 8334fd9285
commit cbd2ab1311
6 changed files with 7 additions and 7 deletions

View file

@ -868,7 +868,7 @@ def nobody_uid():
try:
nobody = pwd.getpwnam('nobody')[2]
except KeyError:
nobody = 1 + max(map(lambda x: x[2], pwd.getpwall()))
nobody = 1 + max(x[2] for x in pwd.getpwall())
return nobody