Skip to content

Commit

Permalink
Fix Python 3 incompat. use of map in shed2tap code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 20, 2015
1 parent 8eda729 commit 7572e99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion planemo/shed2tap/base.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


from xml.etree import ElementTree from xml.etree import ElementTree


from six.moves import map as imap
from six.moves.urllib.request import urlretrieve from six.moves.urllib.request import urlretrieve
from six.moves.urllib.error import URLError from six.moves.urllib.error import URLError
from six import string_types from six import string_types
Expand Down Expand Up @@ -204,7 +205,7 @@ def parse_actions(self, actions):
architecture = actions.get("architecture", None) architecture = actions.get("architecture", None)
action_els = actions.findall("action") action_els = actions.findall("action")
assert action_els is not None assert action_els is not None
parsed_actions = map(self.parse_action, action_els) parsed_actions = list(imap(self.parse_action, action_els))
action_packages = [] action_packages = []
for package in actions.findall("package"): for package in actions.findall("package"):
action_packages.append(self.parse_action_package(package)) action_packages.append(self.parse_action_package(package))
Expand Down

0 comments on commit 7572e99

Please sign in to comment.