commit | a56c467ac39ab1a6a2e9dc2fa41a9f573f989839 | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Tue Jan 27 18:17:45 2009 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Tue Jan 27 18:17:45 2009 +0000 |
tree | f65fc7d2a4359328f10c1dd9122a692e78e71e8a | |
parent | 191e850053128f726d6562e1d8306dfe5e4aa8aa [diff] [blame] |
Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ from the standard library and tests.
diff --git a/Lib/locale.py b/Lib/locale.py index 4116ef1..62828fd 100644 --- a/Lib/locale.py +++ b/Lib/locale.py
@@ -31,7 +31,7 @@ """ strcoll(string,string) -> int. Compares two strings according to the locale. """ - return cmp(a,b) + return (a > b) - (a < b) def _strxfrm(s): """ strxfrm(string) -> string.