Permalink
Browse files

Fix Python 3 incompat. use of map in shed2tap code.

  • Loading branch information...
jmchilton committed Nov 20, 2015
1 parent 8eda729 commit 7572e99b08c5d2be101704461ffcccadeb4189d2
Showing with 2 additions and 1 deletion.
  1. +2 −1 planemo/shed2tap/base.py
@@ -2,6 +2,7 @@

from xml.etree import ElementTree

from six.moves import map as imap
from six.moves.urllib.request import urlretrieve
from six.moves.urllib.error import URLError
from six import string_types
@@ -204,7 +205,7 @@ def parse_actions(self, actions):
architecture = actions.get("architecture", None)
action_els = actions.findall("action")
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 = []
for package in actions.findall("package"):
action_packages.append(self.parse_action_package(package))

0 comments on commit 7572e99

Please sign in to comment.