From 20fa2f558da4fe12c9539511439f39cf8ad3f2e3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 19 Mar 2014 10:13:22 -0500 Subject: use _add_doc --- six.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/six.py b/six.py index c3f0c05..6bc97c4 100644 --- a/six.py +++ b/six.py @@ -500,10 +500,12 @@ else: def iterlists(d, **kw): return iter(d.iterlists(**kw)) -iterkeys.__doc__ = """Return an iterator over the keys of a dictionary.""" -itervalues.__doc__ = """Return an iterator over the values of a dictionary.""" -iteritems.__doc__ = """Return an iterator over the (key, value) pairs of a dictionary.""" -iterlists.__doc__ = """Return an iterator over the (key, [values]) pairs of a dictionary.""" +_add_doc(iterkeys, "Return an iterator over the keys of a dictionary.") +_add_doc(itervalues, "Return an iterator over the values of a dictionary.") +_add_doc(iteritems, + "Return an iterator over the (key, value) pairs of a dictionary.") +_add_doc(iterlists, + "Return an iterator over the (key, [values]) pairs of a dictionary.") if PY3: -- cgit v1.2.1