diff options
Diffstat (limited to 'docs/docsite/rst/dev_guide/testing/sanity/no-dict-iteritems.rst')
-rw-r--r-- | docs/docsite/rst/dev_guide/testing/sanity/no-dict-iteritems.rst | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/docs/docsite/rst/dev_guide/testing/sanity/no-dict-iteritems.rst b/docs/docsite/rst/dev_guide/testing/sanity/no-dict-iteritems.rst deleted file mode 100644 index e231c796c4..0000000000 --- a/docs/docsite/rst/dev_guide/testing/sanity/no-dict-iteritems.rst +++ /dev/null @@ -1,16 +0,0 @@ -no-dict-iteritems -================= - -The ``dict.iteritems`` method has been removed in Python 3. There are two recommended alternatives: - -.. code-block:: python - - for KEY, VALUE in DICT.items(): - pass - -.. code-block:: python - - from ansible.module_utils.six import iteritems - - for KEY, VALUE in iteritems(DICT): - pass |