diff options
| author | Georg Brandl <georg@python.org> | 2010-12-04 10:39:14 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-12-04 10:39:14 +0000 |
| commit | cbd2ab1311120efa37e6dd8008a234235bf97b62 (patch) | |
| tree | aa1fbd5bf7fc5d236956c4b73cbbd407b9612349 /Lib/http/cookies.py | |
| parent | 8334fd9285a8e9f0864b0453ae738fe3f6893b21 (diff) | |
| download | cpython-git-cbd2ab1311120efa37e6dd8008a234235bf97b62.tar.gz | |
#1513299: cleanup some map() uses where a comprehension works better.
Diffstat (limited to 'Lib/http/cookies.py')
| -rw-r--r-- | Lib/http/cookies.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py index 9e51b6791c..fb9589c6aa 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]") |
