commit/galaxy-central: greg: Code cleanup in the tool shed's install_util.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/917be63dc031/ Changeset: 917be63dc031 User: greg Date: 2013-10-15 18:09:33 Summary: Code cleanup in the tool shed's install_util. Affected #: 1 file diff -r d3f602da35338f2a5208cdcadd3d36bdc9eb00f2 -r 917be63dc031533f9fbd0db50ec3d8d55fd66e9f lib/tool_shed/galaxy_install/tool_dependencies/install_util.py --- a/lib/tool_shed/galaxy_install/tool_dependencies/install_util.py +++ b/lib/tool_shed/galaxy_install/tool_dependencies/install_util.py @@ -14,8 +14,8 @@ from tool_shed.util import xml_util from tool_shed.galaxy_install.tool_dependencies import td_common_util from galaxy.model.orm import and_ -from galaxy.web import url_for from galaxy.util import asbool +from galaxy.util import listify log = logging.getLogger( __name__ ) @@ -673,20 +673,6 @@ else: install_and_build_package_via_fabric( app, tool_dependency, actions_dict ) -def listify( item ): - """ - Make a single item a single item list, or return a list if passed a - list. Passing a None returns an empty list. - """ - if not item: - return [] - elif isinstance( item, list ): - return item - elif isinstance( item, basestring ) and item.count( ',' ): - return item.split( ',' ) - else: - return [ item ] - def parse_env_shell_entry( action, name, value, line ): new_value = value var_name = '$%s' % name 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