Blame SOURCES/paste-27-lambda.patch
|
|
a4e9bd |
diff -r 30425672adf7 paste/auth/cookie.py
|
|
|
a4e9bd |
--- a/paste/auth/cookie.py Wed Jun 23 17:15:45 2010 -0500
|
|
|
a4e9bd |
+++ b/paste/auth/cookie.py Mon Aug 02 20:06:43 2010 -0700
|
|
|
a4e9bd |
@@ -62,7 +62,7 @@
|
|
|
a4e9bd |
_decode = [(v, k) for (k, v) in _encode]
|
|
|
a4e9bd |
_decode.reverse()
|
|
|
a4e9bd |
def encode(s, sublist = _encode):
|
|
|
a4e9bd |
- return reduce((lambda a, (b, c): a.replace(b, c)), sublist, str(s))
|
|
|
a4e9bd |
+ return reduce((lambda a, b: a.replace(b[0], b[1])), sublist, str(s))
|
|
|
a4e9bd |
decode = lambda s: encode(s, _decode)
|
|
|
a4e9bd |
|
|
|
a4e9bd |
class CookieTooLarge(RuntimeError):
|