From 4316c68c6c8161a40fee6b8f8717453110c45b7c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 20 Aug 2012 20:34:23 +0200 Subject: [PATCH] key not keys --- ox/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ox/text.py b/ox/text.py index 7783e9b..d6625dc 100644 --- a/ox/text.py +++ b/ox/text.py @@ -555,5 +555,5 @@ def sort_string(string): string = re.sub('(\d+)', lambda x: '%010d' % int(x.group(0)), string) return unicodedata.normalize('NFKD', string) -def sorted_strings(strings, keys=None): - return sorted(strings, cmp=lambda a, b: cmp(sort_string(a), sort_string(b)), keys=keys) +def sorted_strings(strings, key=None): + return sorted(strings, cmp=lambda a, b: cmp(sort_string(a), sort_string(b)), key=key)