diff --git a/subliminal/converters/opensubtitlescom.py b/subliminal/converters/opensubtitlescom.py index a4b57263..26a8f34d 100644 --- a/subliminal/converters/opensubtitlescom.py +++ b/subliminal/converters/opensubtitlescom.py @@ -1,4 +1,5 @@ -# -*- coding: utf-8 -*- +from __future__ import annotations + from babelfish import LanguageReverseConverter, language_converters diff --git a/subliminal/providers/opensubtitlescom.py b/subliminal/providers/opensubtitlescom.py index 38cf4276..bcf24166 100644 --- a/subliminal/providers/opensubtitlescom.py +++ b/subliminal/providers/opensubtitlescom.py @@ -1,4 +1,5 @@ -# -*- coding: utf-8 -*- +from __future__ import annotations + from datetime import datetime, timedelta, timezone import logging import time @@ -76,12 +77,7 @@ def __init__( file_id = None, file_name = None, ): - super(OpenSubtitlesComSubtitle, self).__init__( - language, - hearing_impaired=hearing_impaired, - page_link="", - encoding="utf-8", - ) + super().__init__(language, hearing_impaired=hearing_impaired, page_link="", encoding="utf-8") self.subtitle_id = subtitle_id self.movie_kind = movie_kind self.movie_hash = movie_hash diff --git a/tests/test_opensubtitlescom.py b/tests/test_opensubtitlescom.py index 83c72a70..83e881bf 100644 --- a/tests/test_opensubtitlescom.py +++ b/tests/test_opensubtitlescom.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import os from babelfish import Language