Skip to content

Commit

Permalink
Remove line noise
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Oct 31, 2024
1 parent ac0cacb commit 5a4c32a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
27 changes: 10 additions & 17 deletions pulp_ansible/app/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ class AnsibleFileDownloader(FileDownloader):
"""

def __init__(self, *args, **kwargs):
"""
Initialize the downloader.
"""
kwargs.pop("silence_errors_for_response_status_codes", None)
super().__init__(*args, **kwargs)

Expand All @@ -44,9 +41,6 @@ class TokenAuthHttpDownloader(HttpDownloader):
def __init__(
self, url, auth_url, token, silence_errors_for_response_status_codes=None, **kwargs
):
"""
Initialize the downloader.
"""
self.ansible_auth_url = auth_url
self.token = token
if silence_errors_for_response_status_codes is None:
Expand Down Expand Up @@ -174,19 +168,18 @@ async def get_or_update_token(self):


class AnsibleDownloaderFactory(DownloaderFactory):
"""A factory for creating downloader objects that are configured from with remote settings."""
"""
A factory for creating downloader objects that are configured from with remote settings
Args:
remote (:class:`~pulpcore.plugin.models.Remote`): The remote used to populate
downloader settings.
downloader_overrides (dict): Keyed on a scheme name, e.g. 'https' or 'ftp' and the value
is the downloader class to be used for that scheme, e.g.
{'https': MyCustomDownloader}. These override the default values.
"""

def __init__(self, remote, downloader_overrides=None):
"""
Initialize AnsibleDownloaderFactory.
Args:
remote (:class:`~pulpcore.plugin.models.Remote`): The remote used to populate
downloader settings.
downloader_overrides (dict): Keyed on a scheme name, e.g. 'https' or 'ftp' and the value
is the downloader class to be used for that scheme, e.g.
{'https': MyCustomDownloader}. These override the default values.
"""
if not downloader_overrides:
downloader_overrides = {
"http": TokenAuthHttpDownloader,
Expand Down
1 change: 0 additions & 1 deletion pulp_ansible/app/tasks/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,6 @@ class AnsibleContentSaver(ContentSaver):
"""

def __init__(self, repository_version, *args, **kwargs):
"""Initialize CollectionContentSaver."""
super().__init__(*args, **kwargs)
self.repository_version = repository_version

Expand Down
1 change: 0 additions & 1 deletion pulp_ansible/app/tasks/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class CollectionSigningFirstStage(Stage):
"""

def __init__(self, content, signing_service, current_signatures):
"""Initialize Signing first stage."""
super().__init__()
self.content = content
self.signing_service = signing_service
Expand Down

0 comments on commit 5a4c32a

Please sign in to comment.