diff --git a/bdfr/archive_entry/comment_archive_entry.py b/bdfr/archive_entry/comment_archive_entry.py index 2c991b3..3ee5347 100644 --- a/bdfr/archive_entry/comment_archive_entry.py +++ b/bdfr/archive_entry/comment_archive_entry.py @@ -11,7 +11,7 @@ logger = logging.getLogger(__name__) class CommentArchiveEntry(BaseArchiveEntry): def __init__(self, comment: praw.models.Comment): - super(CommentArchiveEntry, self).__init__(comment) + super().__init__(comment) def compile(self) -> dict: self.source.refresh() diff --git a/bdfr/archive_entry/submission_archive_entry.py b/bdfr/archive_entry/submission_archive_entry.py index e556035..2a3fac5 100644 --- a/bdfr/archive_entry/submission_archive_entry.py +++ b/bdfr/archive_entry/submission_archive_entry.py @@ -11,7 +11,7 @@ logger = logging.getLogger(__name__) class SubmissionArchiveEntry(BaseArchiveEntry): def __init__(self, submission: praw.models.Submission): - super(SubmissionArchiveEntry, self).__init__(submission) + super().__init__(submission) def compile(self) -> dict: comments = self._get_comments() diff --git a/bdfr/archiver.py b/bdfr/archiver.py index 60e3a88..dd4b06e 100644 --- a/bdfr/archiver.py +++ b/bdfr/archiver.py @@ -26,7 +26,7 @@ logger = logging.getLogger(__name__) class Archiver(RedditConnector): def __init__(self, args: Configuration, logging_handlers: Iterable[logging.Handler] = ()): - super(Archiver, self).__init__(args, logging_handlers) + super().__init__(args, logging_handlers) def download(self): for generator in self.reddit_lists: @@ -65,7 +65,7 @@ class Archiver(RedditConnector): return [supplied_submissions] def get_user_data(self) -> list[Iterator]: - results = super(Archiver, self).get_user_data() + results = super().get_user_data() if self.args.user and self.args.all_comments: sort = self.determine_sort_function() for user in self.args.user: diff --git a/bdfr/cloner.py b/bdfr/cloner.py index 87fd907..758e5c8 100644 --- a/bdfr/cloner.py +++ b/bdfr/cloner.py @@ -15,7 +15,7 @@ logger = logging.getLogger(__name__) class RedditCloner(RedditDownloader, Archiver): def __init__(self, args: Configuration, logging_handlers: Iterable[logging.Handler] = ()): - super(RedditCloner, self).__init__(args, logging_handlers) + super().__init__(args, logging_handlers) def download(self): for generator in self.reddit_lists: diff --git a/bdfr/configuration.py b/bdfr/configuration.py index 32d02d0..4aba15f 100644 --- a/bdfr/configuration.py +++ b/bdfr/configuration.py @@ -13,7 +13,7 @@ logger = logging.getLogger(__name__) class Configuration(Namespace): def __init__(self): - super(Configuration, self).__init__() + super().__init__() self.authenticate = False self.config = None self.opts: Optional[str] = None diff --git a/bdfr/downloader.py b/bdfr/downloader.py index 38b600b..95143be 100644 --- a/bdfr/downloader.py +++ b/bdfr/downloader.py @@ -37,7 +37,7 @@ def _calc_hash(existing_file: Path): class RedditDownloader(RedditConnector): def __init__(self, args: Configuration, logging_handlers: Iterable[logging.Handler] = ()): - super(RedditDownloader, self).__init__(args, logging_handlers) + super().__init__(args, logging_handlers) if self.args.search_existing: self.master_hash_list = self.scan_existing_files(self.download_directory) diff --git a/bdfr/oauth2.py b/bdfr/oauth2.py index 2da3c84..f7fa01e 100644 --- a/bdfr/oauth2.py +++ b/bdfr/oauth2.py @@ -88,7 +88,7 @@ class OAuth2Authenticator: class OAuth2TokenManager(praw.reddit.BaseTokenManager): def __init__(self, config: configparser.ConfigParser, config_location: Path): - super(OAuth2TokenManager, self).__init__() + super().__init__() self.config = config self.config_location = config_location diff --git a/bdfr/site_downloaders/fallback_downloaders/ytdlp_fallback.py b/bdfr/site_downloaders/fallback_downloaders/ytdlp_fallback.py index 8c7fa9f..86c2481 100644 --- a/bdfr/site_downloaders/fallback_downloaders/ytdlp_fallback.py +++ b/bdfr/site_downloaders/fallback_downloaders/ytdlp_fallback.py @@ -16,7 +16,7 @@ logger = logging.getLogger(__name__) class YtdlpFallback(BaseFallbackDownloader, Youtube): def __init__(self, post: Submission): - super(YtdlpFallback, self).__init__(post) + super().__init__(post) def find_resources(self, authenticator: Optional[SiteAuthenticator] = None) -> list[Resource]: out = Resource(