Kaydet (Commit) ea56710c authored tarafından Georg Brandl's avatar Georg Brandl

#5341: fix typo and adapt docstring syntax.

üst 4fabac54
......@@ -51,7 +51,7 @@ def wraps(wrapped,
assigned=assigned, updated=updated)
def total_ordering(cls):
'Class decorator that fills-in missing ordering methods'
"""Class decorator that fills in missing ordering methods"""
convert = {
'__lt__': [('__gt__', lambda self, other: other < self),
('__le__', lambda self, other: not other < self),
......@@ -78,7 +78,7 @@ def total_ordering(cls):
return cls
def cmp_to_key(mycmp):
'Convert a cmp= function into a key= function'
"""Convert a cmp= function into a key= function"""
class K(object):
def __init__(self, obj, *args):
self.obj = obj
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment