]> jfr.im git - yt-dlp.git/blobdiff - test/test_post_hooks.py
[cleanup] Misc (#10043)
[yt-dlp.git] / test / test_post_hooks.py
index 1555a23e0dfd617bdcfc35dc851918077042d3a0..3778d1794258679e55a386913be919db343ec3c8 100644 (file)
@@ -1,20 +1,21 @@
 #!/usr/bin/env python3
 
-from __future__ import unicode_literals
-
+# Allow direct execution
 import os
 import sys
 import unittest
+
 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
 
-from test.helper import get_params, try_rm, is_download_test
-import yt_dlp.YoutubeDL
+
+from test.helper import get_params, is_download_test, try_rm
+import yt_dlp.YoutubeDL  # isort: split
 from yt_dlp.utils import DownloadError
 
 
 class YoutubeDL(yt_dlp.YoutubeDL):
     def __init__(self, *args, **kwargs):
-        super(YoutubeDL, self).__init__(*args, **kwargs)
+        super().__init__(*args, **kwargs)
         self.to_stderr = self.to_screen