commit | cbd2ab1311120efa37e6dd8008a234235bf97b62 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Dec 04 10:39:14 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Sat Dec 04 10:39:14 2010 +0000 |
tree | aa1fbd5bf7fc5d236956c4b73cbbd407b9612349 | |
parent | 8334fd9285a8e9f0864b0453ae738fe3f6893b21 [diff] [blame] |
#1513299: cleanup some map() uses where a comprehension works better.
diff --git a/Lib/http/server.py b/Lib/http/server.py index 5ebfd25..2140710 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py
@@ -868,7 +868,7 @@ 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