diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-03-19 10:13:22 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-03-19 10:13:22 -0500 |
commit | 20fa2f558da4fe12c9539511439f39cf8ad3f2e3 (patch) | |
tree | 8b9fbebe8464e8f4541ea5165b22262e687d3523 | |
parent | 9c4572e41cc5c897ee252cc438a99838f35a0495 (diff) | |
download | six-20fa2f558da4fe12c9539511439f39cf8ad3f2e3.tar.gz |
use _add_doc
-rw-r--r-- | six.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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: |