diff options
author | Matty G <meawoppl@gmail.com> | 2012-05-14 11:52:41 -0700 |
---|---|---|
committer | Matty G <meawoppl@gmail.com> | 2012-05-14 11:52:41 -0700 |
commit | f310de85eb7045dda07e7c726bf2d0cde81927a0 (patch) | |
tree | 5cf65d970b31f384c0dde76f05d1fdbfd72e6aa3 | |
parent | 85aa8c26235bc3415ed9d78571639d700703631d (diff) | |
download | bottle-f310de85eb7045dda07e7c726bf2d0cde81927a0.tar.gz |
Update bottle.py
-rw-r--r-- | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2141,7 +2141,7 @@ def parse_range_header(header, maxlen=0): pass def _lscmp(a, b): - ''' Compares two strings in a cryptographically save way: + ''' Compares two strings in a cryptographically safe way: Runtime is not affected by length of common prefix. ''' return not sum(0 if x==y else 1 for x, y in zip(a, b)) and len(a) == len(b) |