summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-04-14 08:56:01 (GMT)
committerGeorg Brandl <georg@python.org>2010-04-14 08:56:01 (GMT)
commitea56710cda45b3c3188029590e1e7ab493bf6eec (patch)
tree6b9127a831a6076a0a42bd31feeeb50c1d13fb59 /Lib/functools.py
parent4fabac545e33593245b92ec3b93af7e5de41b4fb (diff)
downloadcpython-ea56710cda45b3c3188029590e1e7ab493bf6eec.zip
cpython-ea56710cda45b3c3188029590e1e7ab493bf6eec.tar.gz
cpython-ea56710cda45b3c3188029590e1e7ab493bf6eec.tar.bz2
#5341: fix typo and adapt docstring syntax.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index d75e44a..1a1f22e 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -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