commit/galaxy-central: davebgx: Fix python 2.6 support.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/a3db4f686603/ Changeset: a3db4f686603 User: davebgx Date: 2014-02-27 15:20:45 Summary: Fix python 2.6 support. Affected #: 1 file diff -r a6fff5c62ceb6b73ffa67eb5ba8854adc8860eb7 -r a3db4f68660384e96212f7ebb0ff1856db40278b lib/tool_shed/util/commit_util.py --- a/lib/tool_shed/util/commit_util.py +++ b/lib/tool_shed/util/commit_util.py @@ -289,8 +289,8 @@ revised = False toolshed = elem.get( 'toolshed' ) changeset_revision = elem.get( 'changeset_revision' ) - sub_elems = elem.findall( './/' ) - if sub_elems: + sub_elems = [ child_elem for child_elem in list( elem ) ] + if len( sub_elems ) > 0: # At this point, a <repository> tag will point only to a package. # <package name="xorg_macros" version="1.17.1" /> # Coerce the list to an odict(). Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org