Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
cc1e1648
Commit
cc1e1648
authored
Sep 30, 2015
by
Marius Gedminas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak comment style
parent
0371b145
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
lib/ansible/module_utils/basic.py
+16
-6
No files found.
lib/ansible/module_utils/basic.py
View file @
cc1e1648
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment