commit/galaxy-central: jmchilton: PEP-8 fixes for repair_repository_manager.py...
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/3e7e8a3f1b70/ Changeset: 3e7e8a3f1b70 User: jmchilton Date: 2014-08-13 17:17:29 Summary: PEP-8 fixes for repair_repository_manager.py... ... 'cause I promised @dannon. Affected #: 1 file diff -r 724f9ab6ba158b580b20e12545f3337144e7e886 -r 3e7e8a3f1b7085a6a1b6beea0ca40260fa7287d7 lib/tool_shed/galaxy_install/repair_repository_manager.py --- a/lib/tool_shed/galaxy_install/repair_repository_manager.py +++ b/lib/tool_shed/galaxy_install/repair_repository_manager.py @@ -1,4 +1,3 @@ -import os import tempfile import logging @@ -109,7 +108,7 @@ tool_panel_section_dict = metadata.get( 'tool_panel_section', None ) if tool_panel_section_dict: # The repository must be in the uninstalled state. The structure of tool_panel_section_dict is: - # {<tool guid> : + # {<tool guid> : # [{ 'id':<section id>, 'name':<section name>, 'version':<section version>, 'tool_config':<tool config file name> }]} # Here is an example: # {"localhost:9009/repos/test/filter/Filter1/1.1.0": @@ -160,7 +159,7 @@ except Exception, e: error_message = "Error activating repository %s: %s" % ( repository.name, str( e ) ) log.debug( error_message ) - repair_dict [ repository.name ] = error_message + repair_dict[ repository.name ] = error_message elif repository.status not in [ self.app.install_model.ToolShedRepository.installation_status.INSTALLED ]: shed_tool_conf, tool_path, relative_install_dir = \ suc.get_tool_panel_config_tool_path_install_dir( self.app, repository ) @@ -223,4 +222,4 @@ basic_util.remove_dir( work_dir ) irm.update_tool_shed_repository_status( repository, self.app.install_model.ToolShedRepository.installation_status.INSTALLED ) - return repair_dict \ No newline at end of file + return repair_dict 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