Skip to content

Commit 7572e99

Browse files
committed
Fix Python 3 incompat. use of map in shed2tap code.
1 parent 8eda729 commit 7572e99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

planemo/shed2tap/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from xml.etree import ElementTree
44

5+
from six.moves import map as imap
56
from six.moves.urllib.request import urlretrieve
67
from six.moves.urllib.error import URLError
78
from six import string_types
@@ -204,7 +205,7 @@ def parse_actions(self, actions):
204205
architecture = actions.get("architecture", None)
205206
action_els = actions.findall("action")
206207
assert action_els is not None
207-
parsed_actions = map(self.parse_action, action_els)
208+
parsed_actions = list(imap(self.parse_action, action_els))
208209
action_packages = []
209210
for package in actions.findall("package"):
210211
action_packages.append(self.parse_action_package(package))

0 commit comments

Comments
 (0)