Skip to content

Commit

Permalink
adjust for the rest of the linters
Browse files Browse the repository at this point in the history
  • Loading branch information
svonworl committed Mar 12, 2024
1 parent 8c63ec9 commit c32f538
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@
build_tours_registry,
ToursRegistry,
)
from galaxy.util import user_agent # noqa: F401
from galaxy.util import (
ExecutionTimer,
heartbeat,
listify,
StructuredExecutionTimer,
)
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
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/tools/data_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
stream_to_file,
stream_url_to_file,
)
from galaxy.util import user_agent # noqa: F401
from galaxy.util import (
in_directory,
safe_makedirs,
)
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 (
Expand Down
4 changes: 1 addition & 3 deletions lib/galaxy/util/user_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ def modify_user_agent_header(header):

def new_build_opener(*handlers):
opener = old_build_opener(*handlers)
opener.addheaders = [
modify_user_agent_header(header) for header in opener.addheaders
]
opener.addheaders = [modify_user_agent_header(header) for header in opener.addheaders]
return opener

urllib.request.build_opener = new_build_opener
Expand Down

0 comments on commit c32f538

Please sign in to comment.