summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatty G <meawoppl@gmail.com>2012-05-14 11:52:41 -0700
committerMatty G <meawoppl@gmail.com>2012-05-14 11:52:41 -0700
commitf310de85eb7045dda07e7c726bf2d0cde81927a0 (patch)
tree5cf65d970b31f384c0dde76f05d1fdbfd72e6aa3
parent85aa8c26235bc3415ed9d78571639d700703631d (diff)
downloadbottle-f310de85eb7045dda07e7c726bf2d0cde81927a0.tar.gz
Update bottle.py
-rw-r--r--bottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index 8198a7e..539ed4e 100644
--- a/bottle.py
+++ b/bottle.py
@@ -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)