mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#1513299: cleanup some map() uses where a comprehension works better.
This commit is contained in:
parent
8334fd9285
commit
cbd2ab1311
6 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue