diff options
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/cookies.py | 2 | ||||
-rw-r--r-- | Lib/http/server.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py index 9e51b67..fb9589c 100644 --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -230,7 +230,7 @@ def _quote(str, LegalChars=_LegalChars): if all(c in LegalChars for c in str): return str else: - return '"' + _nulljoin(map(_Translator.get, str, str)) + '"' + return '"' + _nulljoin(_Translator.get(s, s) for s in str) + '"' _OctalPatt = re.compile(r"\\[0-3][0-7][0-7]") 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 @@ 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 |