diff --git a/doc/parse_gx_xsd.py b/doc/parse_gx_xsd.py index 3b5fdb61196..b033608cc5c 100644 --- a/doc/parse_gx_xsd.py +++ b/doc/parse_gx_xsd.py @@ -68,7 +68,7 @@ class Tag(object): @property def _pretty_title(self): - return " > ".join(["``%s``" % p for p in self.title.split("|")]) + return " > ".join("``%s``" % p for p in self.title.split("|")) def build_toc_entry(self): return "* [%s](%s)" % (self._pretty_title, self._anchor) diff --git a/lib/galaxy/config/config_manage.py b/lib/galaxy/config/config_manage.py index cbd503bdd4a..c3adebbcf59 100644 --- a/lib/galaxy/config/config_manage.py +++ b/lib/galaxy/config/config_manage.py @@ -687,7 +687,7 @@ def _build_sample_yaml(args, app_desc): description = getattr(schema, "description", None) if description: description = description.lstrip() - as_comment = "\n".join(["# %s" % l for l in description.split("\n")]) + "\n" + as_comment = "\n".join("# %s" % l for l in description.split("\n")) + "\n" f.write(as_comment) _write_sample_section(args, f, 'uwsgi', Schema(UWSGI_OPTIONS), as_comment=False, uwsgi_hack=True) _write_sample_section(args, f, app_desc.app_name, schema) @@ -701,7 +701,7 @@ def _write_to_file(args, f, path): else: contents = f if args.dry_run: - contents_indented = "\n".join([" |%s" % l for l in contents.splitlines()]) + contents_indented = "\n".join(" |%s" % l for l in contents.splitlines()) print("Overwriting %s with the following contents:\n%s" % (path, contents_indented)) print("... skipping because --dry-run is enabled.") else: @@ -756,7 +756,7 @@ def _write_option(args, f, key, option_value, as_comment=False, uwsgi_hack=False else: key_val_str = yaml.dump({key: value}, width=float("inf")).lstrip("{").rstrip("\n}") lines = "%s%s%s" % (comment, as_comment_str, key_val_str) - lines_idented = "\n".join([(" %s" % l) for l in lines.split("\n")]) + lines_idented = "\n".join(" %s" % l for l in lines.split("\n")) f.write("%s\n\n" % lines_idented) diff --git a/lib/galaxy/containers/__init__.py b/lib/galaxy/containers/__init__.py index 786e9c56d53..24e17b9951f 100644 --- a/lib/galaxy/containers/__init__.py +++ b/lib/galaxy/containers/__init__.py @@ -243,7 +243,7 @@ class ContainerInterface(with_metaclass(ABCMeta, object)): """ if isinstance(val, string_types): return self._stringify_kwopt_string(flag, val) - return ' '.join(['{flag} {value}'.format(flag=flag, value=shlex_quote(str(v))) for v in val]) + return ' '.join('{flag} {value}'.format(flag=flag, value=shlex_quote(str(v))) for v in val) def _stringify_kwopt_list_of_kvpairs(self, flag, val): """ diff --git a/lib/galaxy/containers/docker_model.py b/lib/galaxy/containers/docker_model.py index 06dcc4f2ac8..a91cf2dcaba 100644 --- a/lib/galaxy/containers/docker_model.py +++ b/lib/galaxy/containers/docker_model.py @@ -48,7 +48,7 @@ class DockerAttributeContainer(object): return hash(tuple(sorted([repr(x) for x in self._members]))) def __str__(self): - return ', '.join([str(x) for x in self._members]) or 'None' + return ', '.join(str(x) for x in self._members) or 'None' def __iter__(self): return iter(self._members) diff --git a/lib/galaxy/datatypes/dataproviders/external.py b/lib/galaxy/datatypes/dataproviders/external.py index 42136db4b3f..87084f06f65 100644 --- a/lib/galaxy/datatypes/dataproviders/external.py +++ b/lib/galaxy/datatypes/dataproviders/external.py @@ -58,7 +58,7 @@ class SubprocessDataProvider(base.DataProvider): except OSError as os_err: command_str = ' '.join(self.command) - raise OSError(' '.join([str(os_err), ':', command_str])) + raise OSError(' '.join((str(os_err), ':', command_str))) return popen diff --git a/lib/galaxy/datatypes/genetics.py b/lib/galaxy/datatypes/genetics.py index ab57652746e..cbc7a1027b9 100644 --- a/lib/galaxy/datatypes/genetics.py +++ b/lib/galaxy/datatypes/genetics.py @@ -146,7 +146,7 @@ class GenomeGraphs(Tabular): out.append('') for row in d: out.append('') - out.append(''.join(['%s' % x for x in row.split()])) + out.append(''.join('%s' % x for x in row.split())) out.append('') out.append('') out = "".join(out) diff --git a/lib/galaxy/datatypes/isa.py b/lib/galaxy/datatypes/isa.py index 793265a471e..8446d7f5638 100644 --- a/lib/galaxy/datatypes/isa.py +++ b/lib/galaxy/datatypes/isa.py @@ -287,7 +287,7 @@ class _Isa(data.Data): html += '

Submitted the %s

' % study.submission_date html += '

Released on %s

' % study.public_release_date - html += '

Experimental factors used: %s

' % ', '.join([x.name for x in study.factors]) + html += '

Experimental factors used: %s

' % ', '.join(x.name for x in study.factors) # Loop on all assays of this study for assay in study.assays: diff --git a/lib/galaxy/job_metrics/__init__.py b/lib/galaxy/job_metrics/__init__.py index dbc03b4f474..c5da786c9c0 100644 --- a/lib/galaxy/job_metrics/__init__.py +++ b/lib/galaxy/job_metrics/__init__.py @@ -100,7 +100,7 @@ class JobInstrumenter(object): commands.extend(util.listify(plugin_commands)) except Exception: log.exception("Failed to generate pre-execute commands for plugin %s", plugin) - return "\n".join([c for c in commands if c]) + return "\n".join(c for c in commands if c) def post_execute_commands(self, job_directory): commands = [] @@ -111,7 +111,7 @@ class JobInstrumenter(object): commands.extend(util.listify(plugin_commands)) except Exception: log.exception("Failed to generate post-execute commands for plugin %s", plugin) - return "\n".join([c for c in commands if c]) + return "\n".join(c for c in commands if c) def collect_properties(self, job_id, job_directory): per_plugin_properties = {} diff --git a/lib/galaxy/job_metrics/collectl/cli.py b/lib/galaxy/job_metrics/collectl/cli.py index 0bad1d0f187..547fd234c79 100644 --- a/lib/galaxy/job_metrics/collectl/cli.py +++ b/lib/galaxy/job_metrics/collectl/cli.py @@ -92,7 +92,7 @@ class CollectlCli(object): def __subsystems_arg(self, subsystems): if subsystems: - return "-s%s" % "".join([s.command_line_arg for s in subsystems]) + return "-s%s" % "".join(s.command_line_arg for s in subsystems) else: return "" diff --git a/lib/galaxy/jobs/__init__.py b/lib/galaxy/jobs/__init__.py index 250b4740504..86acbe17695 100644 --- a/lib/galaxy/jobs/__init__.py +++ b/lib/galaxy/jobs/__init__.py @@ -727,7 +727,7 @@ class JobConfiguration(ConfiguresHandlers): rval = {} if handler_id in self.handler_runner_plugins: plugins_to_load = [rp for rp in self.runner_plugins if rp['id'] in self.handler_runner_plugins[handler_id]] - log.info("Handler '%s' will load specified runner plugins: %s", handler_id, ', '.join([rp['id'] for rp in plugins_to_load])) + log.info("Handler '%s' will load specified runner plugins: %s", handler_id, ', '.join(rp['id'] for rp in plugins_to_load)) else: plugins_to_load = self.runner_plugins log.info("Handler '%s' will load all configured runner plugins", handler_id) diff --git a/lib/galaxy/jobs/handler.py b/lib/galaxy/jobs/handler.py index 5b089288677..695eb276574 100644 --- a/lib/galaxy/jobs/handler.py +++ b/lib/galaxy/jobs/handler.py @@ -121,7 +121,7 @@ class JobHandlerQueue(Monitors): self.__grab_conn_opts['isolation_level'] = 'SERIALIZABLE' log.info( "Handler job grabber initialized with '%s' assignment method for handler '%s', tag(s): %s", method, - self.app.config.server_name, ', '.join([str(x) for x in self.app.job_config.handler_tags]) + self.app.config.server_name, ', '.join(str(x) for x in self.app.job_config.handler_tags) ) def start(self): @@ -267,7 +267,7 @@ class JobHandlerQueue(Monitors): try: rows = conn.execute(self.__grab_query).fetchall() if rows: - log.debug('Grabbed job(s): %s', ', '.join([str(row[0]) for row in rows])) + log.debug('Grabbed job(s): %s', ', '.join(str(row[0]) for row in rows)) trans.commit() else: trans.rollback() diff --git a/lib/galaxy/jobs/manager.py b/lib/galaxy/jobs/manager.py index d44707a8720..e82b3286de1 100644 --- a/lib/galaxy/jobs/manager.py +++ b/lib/galaxy/jobs/manager.py @@ -35,7 +35,7 @@ class JobManager(object): if jobs_at_startup: log.info( 'No handler assigned at startup for the following jobs, will dispatch via message: %s', - ', '.join([str(j.id) for j in jobs_at_startup])) + ', '.join(str(j.id) for j in jobs_at_startup)) for job in jobs_at_startup: tool = self.app.toolbox.get_tool(job.tool_id, job.tool_version, exact=True) self.enqueue(job, tool) diff --git a/lib/galaxy/jobs/transfer_manager.py b/lib/galaxy/jobs/transfer_manager.py index fedcacf302b..7f27f760452 100644 --- a/lib/galaxy/jobs/transfer_manager.py +++ b/lib/galaxy/jobs/transfer_manager.py @@ -63,7 +63,7 @@ class TransferManager(object): running daemon, so it should be fairly quick to return. """ transfer_jobs = listify(transfer_jobs) - printable_tj_ids = ', '.join([str(tj.id) for tj in transfer_jobs]) + printable_tj_ids = ', '.join(str(tj.id) for tj in transfer_jobs) log.debug('Initiating transfer job(s): %s' % printable_tj_ids) # Set all jobs running before spawning, or else updating the state may # clobber a state change performed by the worker. diff --git a/lib/galaxy/managers/base.py b/lib/galaxy/managers/base.py index 26b0fe2e01b..84e29f06f40 100644 --- a/lib/galaxy/managers/base.py +++ b/lib/galaxy/managers/base.py @@ -659,7 +659,7 @@ class ModelSerializer(HasAModelManager): return None split = type_id.split(TYPE_ID_SEP, 1) # Note: it may not be best to encode the id at this layer - return TYPE_ID_SEP.join([split[0], self.app.security.encode_id(split[1])]) + return TYPE_ID_SEP.join((split[0], self.app.security.encode_id(split[1]))) # serializing to a view where a view is a predefied list of keys to serialize def serialize_to_view(self, item, view=None, keys=None, default_view=None, **context): @@ -1122,7 +1122,7 @@ class ModelFilterParser(HasAModelManager): match = self.date_string_re.match(date_string) if match: - date_string = ' '.join([group for group in match.groups() if group]) + date_string = ' '.join(group for group in match.groups() if group) return date_string raise ValueError('datetime strings must be in the ISO 8601 format and in the UTC') diff --git a/lib/galaxy/managers/history_contents.py b/lib/galaxy/managers/history_contents.py index 21199ffd87e..1b9bef760cb 100644 --- a/lib/galaxy/managers/history_contents.py +++ b/lib/galaxy/managers/history_contents.py @@ -507,7 +507,7 @@ class HistoryContentsFilters(base.ModelFilterParser, def decode_type_id(self, type_id): TYPE_ID_SEP = '-' split = type_id.split(TYPE_ID_SEP, 1) - return TYPE_ID_SEP.join([split[0], str(self.app.security.decode_id(split[1]))]) + return TYPE_ID_SEP.join((split[0], str(self.app.security.decode_id(split[1])))) def parse_type_id_list(self, type_id_list_string, sep=','): """ diff --git a/lib/galaxy/managers/markdown_util.py b/lib/galaxy/managers/markdown_util.py index 111f053d033..c547353ede2 100644 --- a/lib/galaxy/managers/markdown_util.py +++ b/lib/galaxy/managers/markdown_util.py @@ -387,7 +387,7 @@ class ToBasicMarkdownDirectiveHandler(GalaxyInternalMarkdownDirectiveHandler): markdown += " | " value = parameter["value"] if isinstance(value, list): - markdown += ", ".join(["%s: %s" % (p["hid"], p["name"]) for p in value]) + markdown += ", ".join("%s: %s" % (p["hid"], p["name"]) for p in value) else: markdown += value markdown += " |\n" @@ -400,7 +400,7 @@ class MarkdownFormatHelpers(object): @staticmethod def literal_via_fence(content): - return "\n%s\n" % "\n".join([" %s" % l for l in content.splitlines()]) + return "\n%s\n" % "\n".join(" %s" % l for l in content.splitlines()) @staticmethod def indicate_data_truncated(): diff --git a/lib/galaxy/managers/users.py b/lib/galaxy/managers/users.py index 71ff455a74d..45726999916 100644 --- a/lib/galaxy/managers/users.py +++ b/lib/galaxy/managers/users.py @@ -68,9 +68,9 @@ class UserManager(base.ModelManager, deletable.PurgableManagerMixin): return None, message if not email or not username or not password or not confirm: return None, "Please provide email, username and password." - message = "\n".join([validate_email(trans, email), + message = "\n".join((validate_email(trans, email), validate_password(trans, password, confirm), - validate_publicname(trans, username)]).rstrip() + validate_publicname(trans, username))).rstrip() if message: return None, message email = util.restore_text(email) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 5296019faca..e731553d22f 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -3253,7 +3253,7 @@ class HistoryDatasetAssociation(DatasetInstance, HasTags, Dictifiable, UsesAnnot @hybrid.hybrid_property def type_id(self): - return u'-'.join([self.content_type, str(self.id)]) + return u'-'.join((self.content_type, str(self.id))) @type_id.expression def type_id(cls): @@ -3526,7 +3526,7 @@ class LibraryDataset(RepresentById): if isinstance(val, MetadataFile): val = val.file_name elif isinstance(val, list): - val = ', '.join([str(v) for v in val]) + val = ', '.join(str(v) for v in val) rval['metadata_' + name] = val return rval @@ -4160,7 +4160,7 @@ class HistoryDatasetCollectionAssociation(DatasetCollectionInstance, @hybrid.hybrid_property def type_id(self): - return u'-'.join([self.content_type, str(self.id)]) + return u'-'.join((self.content_type, str(self.id))) @type_id.expression def type_id(cls): diff --git a/lib/galaxy/model/metadata.py b/lib/galaxy/model/metadata.py index 0b93c5eb363..c257e2960e4 100644 --- a/lib/galaxy/model/metadata.py +++ b/lib/galaxy/model/metadata.py @@ -473,7 +473,7 @@ class ColumnTypesParameter(MetadataParameter): class ListParameter(MetadataParameter): def to_string(self, value): - return ",".join([str(x) for x in value]) + return ",".join(str(x) for x in value) class DictParameter(MetadataParameter): diff --git a/lib/galaxy/model/security.py b/lib/galaxy/model/security.py index 6505d60f521..ec728dc6143 100644 --- a/lib/galaxy/model/security.py +++ b/lib/galaxy/model/security.py @@ -910,7 +910,7 @@ class GalaxyRBACAgent(RBACAgent): sharing_role = role break if sharing_role is None: - sharing_role = self.model.Role(name="Sharing role for: " + ", ".join([u.email for u in users]), + sharing_role = self.model.Role(name="Sharing role for: " + ", ".join(u.email for u in users), type=self.model.Role.types.SHARING) self.sa_session.add(sharing_role) self.sa_session.flush() diff --git a/lib/galaxy/selenium/components.py b/lib/galaxy/selenium/components.py index 2eac23ad8ae..4884ff48c56 100644 --- a/lib/galaxy/selenium/components.py +++ b/lib/galaxy/selenium/components.py @@ -73,7 +73,7 @@ class SelectorTemplate(Target): selector = self._selector if self.__kwds is not None: selector = string.Template(selector).substitute(self.__kwds) - selector = selector + "".join([".%s" % c for c in self.with_classes]) + selector = selector + "".join(".%s" % c for c in self.with_classes) return selector @property diff --git a/lib/galaxy/tool_shed/galaxy_install/tool_dependencies/recipe/install_environment.py b/lib/galaxy/tool_shed/galaxy_install/tool_dependencies/recipe/install_environment.py index 5dd7588da73..3221dad2b84 100644 --- a/lib/galaxy/tool_shed/galaxy_install/tool_dependencies/recipe/install_environment.py +++ b/lib/galaxy/tool_shed/galaxy_install/tool_dependencies/recipe/install_environment.py @@ -270,7 +270,7 @@ class InstallEnvironment(object): log.exception(str(e)) def __setup_environment(self): - return "&&".join([". %s" % file for file in self.__valid_env_shell_file_paths()]) + return "&&".join(". %s" % _ for _ in self.__valid_env_shell_file_paths()) def __valid_env_shell_file_paths(self): - return [file for file in self.env_shell_file_paths if os.path.exists(file)] + return [_ for _ in self.env_shell_file_paths if os.path.exists(_)] diff --git a/lib/galaxy/tool_shed/util/repository_util.py b/lib/galaxy/tool_shed/util/repository_util.py index 12f53e6ca93..6cc746676b4 100644 --- a/lib/galaxy/tool_shed/util/repository_util.py +++ b/lib/galaxy/tool_shed/util/repository_util.py @@ -161,7 +161,7 @@ def generate_tool_shed_repository_install_dir(repository_clone_url, changeset_re tool_shed_url = items[0] repo_path = items[1] tool_shed_url = common_util.remove_port_from_tool_shed_url(tool_shed_url) - return '/'.join([tool_shed_url, 'repos', repo_path, changeset_revision]) + return '/'.join((tool_shed_url, 'repos', repo_path, changeset_revision)) def get_absolute_path_to_file_in_repository(repo_files_dir, file_name): diff --git a/lib/galaxy/tool_util/deps/commands.py b/lib/galaxy/tool_util/deps/commands.py index 86b6a871338..188a640b92e 100644 --- a/lib/galaxy/tool_util/deps/commands.py +++ b/lib/galaxy/tool_util/deps/commands.py @@ -107,7 +107,7 @@ def argv_to_str(command_argv, quote=True): code. """ map_func = shlex_quote if quote else lambda x: x - return " ".join([map_func(c) for c in command_argv if c is not None]) + return " ".join(map_func(c) for c in command_argv if c is not None) def _wait(cmds, **popen_kwds): diff --git a/lib/galaxy/tool_util/verify/interactor.py b/lib/galaxy/tool_util/verify/interactor.py index cac93ddd30d..5f589e8de17 100644 --- a/lib/galaxy/tool_util/verify/interactor.py +++ b/lib/galaxy/tool_util/verify/interactor.py @@ -542,7 +542,7 @@ class GalaxyInteractorApi(object): print(ERROR_MESSAGE_DATASET_SEP) def format_for_summary(self, blob, empty_message, prefix="| "): - contents = "\n".join(["%s%s" % (prefix, line.strip()) for line in StringIO(blob).readlines() if line.rstrip("\n\r")]) + contents = "\n".join("%s%s" % (prefix, line.strip()) for line in StringIO(blob).readlines() if line.rstrip("\n\r")) return contents or "%s*%s*" % (prefix, empty_message) def _dataset_provenance(self, history_id, id): diff --git a/lib/galaxy/tools/actions/__init__.py b/lib/galaxy/tools/actions/__init__.py index fca283cb5c6..08ece062900 100644 --- a/lib/galaxy/tools/actions/__init__.py +++ b/lib/galaxy/tools/actions/__init__.py @@ -766,7 +766,7 @@ class DefaultToolAction(object): - + """ diff --git a/lib/galaxy/tools/error_reports/plugins/github.py b/lib/galaxy/tools/error_reports/plugins/github.py index d8f3b80173b..15060ed0a55 100644 --- a/lib/galaxy/tools/error_reports/plugins/github.py +++ b/lib/galaxy/tools/error_reports/plugins/github.py @@ -72,7 +72,7 @@ class GithubPlugin(BaseGitPlugin): # Determine the GitLab project URL and the issue cache key github_projecturl = urlparse.urlparse(ts_repourl).path[1:] if (ts_repourl and not self.git_default_repo_only) \ - else "/".join([self.git_default_repo_owner, self.git_default_repo_name]) + else "/".join((self.git_default_repo_owner, self.git_default_repo_name)) issue_cache_key = self._get_issue_cache_key(job, ts_repourl) # Connect to the repo diff --git a/lib/galaxy/tools/error_reports/plugins/gitlab.py b/lib/galaxy/tools/error_reports/plugins/gitlab.py index bd82690dccf..64f0656a9ba 100644 --- a/lib/galaxy/tools/error_reports/plugins/gitlab.py +++ b/lib/galaxy/tools/error_reports/plugins/gitlab.py @@ -109,7 +109,7 @@ class GitLabPlugin(BaseGitPlugin): # Determine the GitLab project URL and the issue cache key gitlab_projecturl = urlparse.urlparse(ts_repourl).path[1:] if (ts_repourl and not self.git_default_repo_only)\ - else "/".join([self.git_default_repo_owner, self.git_default_repo_name]) + else "/".join((self.git_default_repo_owner, self.git_default_repo_name)) issue_cache_key = self._get_issue_cache_key(job, ts_repourl) gitlab_urlencodedpath = urllib.quote_plus(gitlab_projecturl) @@ -151,7 +151,7 @@ class GitLabPlugin(BaseGitPlugin): # Create a new issue. self._create_issue(issue_cache_key, error_title, error_message, gl_project, gl_userid=gl_userid) except (gitlab.GitlabOwnershipError, gitlab.GitlabGetError): - gitlab_projecturl = "/".join([self.git_default_repo_owner, self.git_default_repo_name]) + gitlab_projecturl = "/".join((self.git_default_repo_owner, self.git_default_repo_name)) gitlab_urlencodedpath = urllib.quote_plus(gitlab_projecturl) # Make sure we are always logged in, then retrieve the GitLab project if it isn't cached. self.gitlab = self.gitlab_connect() @@ -217,7 +217,7 @@ class GitLabPlugin(BaseGitPlugin): def _append_issue(self, issue_cache_key, error_title, error_message, **kwargs): # Add a comment to an existing issue - gl_url = "/".join([ + gl_url = "/".join(( self.gitlab_base_url, "api", "v4", @@ -226,7 +226,7 @@ class GitLabPlugin(BaseGitPlugin): "issues", str(self.issue_cache[issue_cache_key][error_title]), "notes" - ]) + )) self.gitlab.http_post(gl_url, post_data={'body': error_message}) def _fill_issue_cache(self, git_project, issue_cache_key): diff --git a/lib/galaxy/tools/parameters/basic.py b/lib/galaxy/tools/parameters/basic.py index 43d65298a36..5fc67474e97 100644 --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -1845,7 +1845,7 @@ class DataToolParameter(BaseDataToolParameter): value = [value] if value: try: - return ", ".join(["%s: %s" % (item.hid, item.name) for item in value]) + return ", ".join("%s: %s" % (item.hid, item.name) for item in value) except Exception: pass return "No dataset." diff --git a/lib/galaxy/tools/search/__init__.py b/lib/galaxy/tools/search/__init__.py index ae1432a9468..85afae25702 100644 --- a/lib/galaxy/tools/search/__init__.py +++ b/lib/galaxy/tools/search/__init__.py @@ -91,14 +91,14 @@ class ToolBoxSearch(object): } if tool.name.find('-') != -1: # Replace hyphens, since they are wildcards in Whoosh causing false positives - add_doc_kwds['name'] = (' ').join([token.text for token in self.rex(to_unicode(tool.name))]) + add_doc_kwds['name'] = (' ').join(token.text for token in self.rex(to_unicode(tool.name))) else: add_doc_kwds['name'] = to_unicode(tool.name) if tool.guid: # Create a stub consisting of owner, repo, and tool from guid slash_indexes = [m.start() for m in re.finditer('/', tool.guid)] id_stub = tool.guid[(slash_indexes[1] + 1): slash_indexes[4]] - add_doc_kwds['stub'] = (' ').join([token.text for token in self.rex(to_unicode(id_stub))]) + add_doc_kwds['stub'] = (' ').join(token.text for token in self.rex(to_unicode(id_stub))) else: add_doc_kwds['stub'] = to_unicode(id) if tool.labels: @@ -143,7 +143,7 @@ class ToolBoxSearch(object): cleaned_query = q.lower() # Replace hyphens, since they are wildcards in Whoosh causing false positives if cleaned_query.find('-') != -1: - cleaned_query = (' ').join([token.text for token in self.rex(to_unicode(cleaned_query))]) + cleaned_query = (' ').join(token.text for token in self.rex(to_unicode(cleaned_query))) if tool_enable_ngram_search is True: rval = self._search_ngrams(cleaned_query, tool_ngram_minsize, tool_ngram_maxsize, tool_search_limit) return rval diff --git a/lib/galaxy/tools/toolbox/integrated_panel.py b/lib/galaxy/tools/toolbox/integrated_panel.py index 6e8d0fdf7a6..496456d6722 100644 --- a/lib/galaxy/tools/toolbox/integrated_panel.py +++ b/lib/galaxy/tools/toolbox/integrated_panel.py @@ -98,7 +98,7 @@ $INTEGRATED_TOOL_PANEL label_version = section_item.version or '' integrated_tool_panel.append('