diff options
author | Marius Gedminas <marius@gedmin.as> | 2015-09-30 18:22:02 +0300 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2015-09-30 18:46:50 +0300 |
commit | cc1e1648f5ffeb9ae86e21b462b3aca4a369ffb9 (patch) | |
tree | 239a0409f6df1614cd319427ef3464cd441c6d64 | |
parent | 0371b145679bf5fb18f8e9d8f8a4f2faed62ff52 (diff) | |
download | ansible-cc1e1648f5ffeb9ae86e21b462b3aca4a369ffb9.tar.gz |
Tweak comment style
-rw-r--r-- | lib/ansible/module_utils/basic.py | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 9727cf14a0..b1af1164b4 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -69,31 +69,41 @@ import errno from itertools import repeat try: - from itertools import imap # Python 2 + # Python 2 + from itertools import imap except ImportError: - imap = map # Python 3 + # Python 3 + imap = map try: + # Python 2 basestring except NameError: - basestring = str # Python 3 + # Python 3 + basestring = str try: + # Python 2 unicode except NameError: - unicode = str # Python 3 + # Python 3 + unicode = str try: + # Python 2.6+ bytes except NameError: - bytes = str # Python 2 + # Python 2.4 + bytes = str try: dict.iteritems except AttributeError: - def iteritems(d): # Python 3 + # Python 3 + def iteritems(d): return d.items() else: + # Python 2 def iteritems(d): # Python 2 return d.iteritems() |