mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adding py3 stub for reduce from six.moves
This commit is contained in:
parent
b853e932d1
commit
b559d0e6ee
1 changed files with 6 additions and 0 deletions
|
@ -113,6 +113,12 @@ else:
|
||||||
def iteritems(d):
|
def iteritems(d):
|
||||||
return d.iteritems()
|
return d.iteritems()
|
||||||
|
|
||||||
|
try:
|
||||||
|
reduce
|
||||||
|
except NameError:
|
||||||
|
# Python 3
|
||||||
|
from six.moves import reduce
|
||||||
|
|
||||||
try:
|
try:
|
||||||
NUMBERTYPES = (int, long, float)
|
NUMBERTYPES = (int, long, float)
|
||||||
except NameError:
|
except NameError:
|
||||||
|
|
Loading…
Reference in a new issue