summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2012-05-14 12:20:50 -0700
committerMarcel Hellkamp <marc@gsites.de>2012-05-14 12:20:50 -0700
commit5108c6bf2d0828d80953483450160dee8e88919a (patch)
tree5cf65d970b31f384c0dde76f05d1fdbfd72e6aa3
parent85aa8c26235bc3415ed9d78571639d700703631d (diff)
parentf310de85eb7045dda07e7c726bf2d0cde81927a0 (diff)
downloadbottle-5108c6bf2d0828d80953483450160dee8e88919a.tar.gz
Merge pull request #324 from meawoppl/master
Typo Fix
-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)