diff --git a/lib/galaxy/app.py b/lib/galaxy/app.py index 9915d1ab51f1..b2b45e2804c0 100644 --- a/lib/galaxy/app.py +++ b/lib/galaxy/app.py @@ -138,8 +138,8 @@ heartbeat, listify, StructuredExecutionTimer, - user_agent, # noqa: F401 ) +from galaxy.util import user_agent # noqa: F401 from galaxy.util.task import IntervalTask from galaxy.util.tool_shed import tool_shed_registry from galaxy.visualization.data_providers.registry import DataProviderRegistry diff --git a/lib/galaxy/tools/data_fetch.py b/lib/galaxy/tools/data_fetch.py index 5c31b352cb72..9f7fa4b9d307 100644 --- a/lib/galaxy/tools/data_fetch.py +++ b/lib/galaxy/tools/data_fetch.py @@ -29,8 +29,8 @@ from galaxy.util import ( in_directory, safe_makedirs, - user_agent, # noqa: F401 ) +from galaxy.util import user_agent # noqa: F401 from galaxy.util.bunch import Bunch from galaxy.util.compression_utils import CompressedFile from galaxy.util.hash_util import ( diff --git a/lib/galaxy/util/user_agent.py b/lib/galaxy/util/user_agent.py index 786bf299078e..a2241b3dd5db 100644 --- a/lib/galaxy/util/user_agent.py +++ b/lib/galaxy/util/user_agent.py @@ -4,6 +4,7 @@ from galaxy.version import VERSION + def __append_word_to_user_agent(word): # set requests User-Agent