mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Adding py3 stub for reduce from six.moves
This commit is contained in:
@@ -113,6 +113,12 @@ else:
|
||||
def iteritems(d):
|
||||
return d.iteritems()
|
||||
|
||||
try:
|
||||
reduce
|
||||
except NameError:
|
||||
# Python 3
|
||||
from six.moves import reduce
|
||||
|
||||
try:
|
||||
NUMBERTYPES = (int, long, float)
|
||||
except NameError:
|
||||
|
||||
Reference in New Issue
Block a user