summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-03-19 10:13:22 -0500
committerBenjamin Peterson <benjamin@python.org>2014-03-19 10:13:22 -0500
commit20fa2f558da4fe12c9539511439f39cf8ad3f2e3 (patch)
tree8b9fbebe8464e8f4541ea5165b22262e687d3523
parent9c4572e41cc5c897ee252cc438a99838f35a0495 (diff)
downloadsix-20fa2f558da4fe12c9539511439f39cf8ad3f2e3.tar.gz
use _add_doc
-rw-r--r--six.py10
1 files 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: