commit/galaxy-central: greg: White space fixes in the tool shed registry code.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/f5b320301daa/ Changeset: f5b320301daa User: greg Date: 2013-05-22 22:09:52 Summary: White space fixes in the tool shed registry code. Affected #: 1 file diff -r c9d7d174492e530c8b9384391f9b3cf6c7d09e7e -r f5b320301daa6e2cd74c54ab0bdd7a2145f92ba1 lib/tool_shed/tool_shed_registry.py --- a/lib/tool_shed/tool_shed_registry.py +++ b/lib/tool_shed/tool_shed_registry.py @@ -11,7 +11,7 @@ class Registry( object ): def __init__( self, root_dir=None, config=None ): - self.tool_sheds = odict() + self.tool_sheds = odict() self.tool_sheds_auth = odict() if root_dir and config: # Parse tool_sheds_conf.xml @@ -20,17 +20,17 @@ log.debug( 'Loading references to tool sheds from %s' % config ) for elem in root.findall( 'tool_shed' ): try: - name = elem.get( 'name', None ) - url = elem.get( 'url', None ) + name = elem.get( 'name', None ) + url = elem.get( 'url', None ) username = elem.get( 'user', None ) password = elem.get( 'pass', None ) if name and url: - self.tool_sheds[ name ] = url + self.tool_sheds[ name ] = url self.tool_sheds_auth[ name ] = None log.debug( 'Loaded reference to tool shed: %s' % name ) if name and url and username and password: pass_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm() - pass_mgr.add_password(None, url, username, password) + pass_mgr.add_password( None, url, username, password ) self.tool_sheds_auth[ name ] = pass_mgr except Exception, e: log.warning( 'Error loading reference to tool shed "%s", problem: %s' % ( name, str( e ) ) ) 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