#17351: remove "object" inheritance from docs. Patch by Phil Elson.

This commit is contained in:
Ezio Melotti 2013-03-11 09:30:21 +02:00
parent 42a541bd49
commit af8838f443
5 changed files with 9 additions and 8 deletions

View file

@ -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):