[Python-checkins] r80068 - python/trunk/Lib/functools.py

georg.brandl python-checkins at python.org
Wed Apr 14 10:56:01 CEST 2010


Author: georg.brandl
Date: Wed Apr 14 10:56:01 2010
New Revision: 80068

Log:
#5341: fix typo and adapt docstring syntax.

Modified:
   python/trunk/Lib/functools.py

Modified: python/trunk/Lib/functools.py
==============================================================================
--- python/trunk/Lib/functools.py	(original)
+++ python/trunk/Lib/functools.py	Wed Apr 14 10:56:01 2010
@@ -51,7 +51,7 @@
                    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 @@
     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


More information about the Python-checkins mailing list