From ffb7c7613bc59d4195b22f91d3025aa6c913958d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Opio=C5=82a?= Date: Thu, 14 Sep 2023 15:02:49 +0200 Subject: [PATCH] Apply further suggestions from code review --- lib/galaxy/dependencies/__init__.py | 2 +- lib/galaxy/files/sources/onedata.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/dependencies/__init__.py b/lib/galaxy/dependencies/__init__.py index 1530b48fb3cd..aca4c3fd8e84 100644 --- a/lib/galaxy/dependencies/__init__.py +++ b/lib/galaxy/dependencies/__init__.py @@ -265,7 +265,7 @@ def check_fs_gcsfs(self): def check_google_cloud_storage(self): return "googlecloudstorage" in self.file_sources - def check_fs_onedatafs(self): + def check_fs_onedatarestfs(self): return "onedata" in self.file_sources def check_fs_basespace(self): diff --git a/lib/galaxy/files/sources/onedata.py b/lib/galaxy/files/sources/onedata.py index ee20825703dc..986ca0feec4e 100644 --- a/lib/galaxy/files/sources/onedata.py +++ b/lib/galaxy/files/sources/onedata.py @@ -4,13 +4,14 @@ OnedataRESTFS = None from typing import Optional + from . import FilesSourceOptions from ._pyfilesystem2 import PyFilesystem2FilesSource def remove_prefix(prefix, string): if string.startswith(prefix): - string = string[len(prefix):] + string = string[len(prefix) :] return string