diff options
Diffstat (limited to 'Lib/functools.py')
| -rw-r--r-- | Lib/functools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index d31b090..ad1cccc 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -76,7 +76,7 @@ def total_ordering(cls): setattr(cls, opname, opfunc) return cls -def CmpToKey(mycmp): +def cmp_to_key(mycmp): 'Convert a cmp= function into a key= function' class K(object): def __init__(self, obj, *args): |
