aboutsummaryrefslogtreecommitdiffhomepage
path: root/devscripts
diff options
context:
space:
mode:
authordirkf <[email protected]>2023-06-30 03:52:39 +0100
committerdirkf <[email protected]>2023-07-05 22:58:09 +0100
commitb08a58090635777f1001d5cde2cd141a5565177c (patch)
tree0707e021eafd644b2eec136bc8250ef59af8ce75 /devscripts
parent2500300c2a5986ace34390aa473a8bd51f83622c (diff)
downloadyoutube-dl-b08a58090635777f1001d5cde2cd141a5565177c.tar.gz
youtube-dl-b08a58090635777f1001d5cde2cd141a5565177c.zip
[workflows/ci.yml] Fix test support for Py 2.6
Diffstat (limited to 'devscripts')
-rw-r--r--devscripts/make_lazy_extractors.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/devscripts/make_lazy_extractors.py b/devscripts/make_lazy_extractors.py
index 4bddca047..a8b6ff1b9 100644
--- a/devscripts/make_lazy_extractors.py
+++ b/devscripts/make_lazy_extractors.py
@@ -6,10 +6,6 @@ import os
from os.path import dirname as dirn
import sys
-from youtube_dl.compat import compat_register_utf8
-
-compat_register_utf8()
-
print('WARNING: Lazy loading extractors is an experimental feature that may not always work', file=sys.stderr)
sys.path.insert(0, dirn(dirn((os.path.abspath(__file__)))))
@@ -23,6 +19,10 @@ try:
except OSError:
pass
+from youtube_dl.compat import compat_register_utf8
+
+compat_register_utf8()
+
from youtube_dl.extractor import _ALL_CLASSES
from youtube_dl.extractor.common import InfoExtractor, SearchInfoExtractor