commit/galaxy-central: greg: Fix imports in shed_util_common.py
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/4f68935907f4/ changeset: 4f68935907f4 user: greg date: 2012-11-15 23:01:56 summary: Fix imports in shed_util_common.py affected #: 1 file diff -r a43b16b64b1a4b0b7fe2d5be0d87a9047c3a54a3 -r 4f68935907f4f86313f63cad33a310e65b2ee02c lib/galaxy/util/shed_util_common.py --- a/lib/galaxy/util/shed_util_common.py +++ b/lib/galaxy/util/shed_util_common.py @@ -13,6 +13,10 @@ pkg_resources.require( 'mercurial' ) from mercurial import hg, ui, commands +pkg_resources.require( 'elementtree' ) +from elementtree import ElementTree, ElementInclude +from elementtree.ElementTree import Element, SubElement + log = logging.getLogger( __name__ ) INITIAL_CHANGELOG_HASH = '000000000000' @@ -592,8 +596,8 @@ try: # Make sure we're looking at a valid repository_dependencies.xml file. tree = util.parse_xml( repository_dependencies_config ) - root = element_tree.getroot() - is_valid = element_tree_root.tag == 'repositories' + root = tree.getroot() + is_valid = root.tag == 'repositories' except Exception, e: log.debug( "Error parsing %s, exception: %s" % ( repository_dependencies_config, str( e ) ) ) is_valid = False 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)
-
Bitbucket