diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-11 07:30:21 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-11 07:30:21 (GMT) |
commit | af8838f4430cec7ba36caf3ce419a5205451c02a (patch) | |
tree | dca3f98c2011d5032c6d97effb9fa063e9ff4039 /Doc/howto/sorting.rst | |
parent | 42a541bd490fbf8eb9f4bf0399f3411b5f3e5d87 (diff) | |
download | cpython-af8838f4430cec7ba36caf3ce419a5205451c02a.zip cpython-af8838f4430cec7ba36caf3ce419a5205451c02a.tar.gz cpython-af8838f4430cec7ba36caf3ce419a5205451c02a.tar.bz2 |
#17351: remove "object" inheritance from docs. Patch by Phil Elson.
Diffstat (limited to 'Doc/howto/sorting.rst')
-rw-r--r-- | Doc/howto/sorting.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/sorting.rst b/Doc/howto/sorting.rst index 00bc6f7..f2e64ee 100644 --- a/Doc/howto/sorting.rst +++ b/Doc/howto/sorting.rst @@ -225,7 +225,7 @@ function. The following wrapper makes that easy to do:: def cmp_to_key(mycmp): 'Convert a cmp= function into a key= function' - class K(object): + class K: def __init__(self, obj, *args): self.obj = obj def __lt__(self, other): |