about summary refs log tree commit diff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-05-26 20:25:25 +0100
committerdirkf <fieldhouse@gmx.net>2023-05-26 20:25:25 +0100
commitb8a86dcf1aa837577178ae25357d8241ab4ba6c1 (patch)
treecf900d8eb2b7551885ce498fac68c6cc89fc9fee /youtube_dl/YoutubeDL.py
parent2389c7cbd30813435c50848a9b276bcfe2a810db (diff)
downloadyoutube-dl-b8a86dcf1aa837577178ae25357d8241ab4ba6c1.tar.gz
youtube-dl-b8a86dcf1aa837577178ae25357d8241ab4ba6c1.tar.xz
youtube-dl-b8a86dcf1aa837577178ae25357d8241ab4ba6c1.zip
[core] Revise 1f7c6f8 to help downstream merger (possibly)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 1b3ef94b4..98b878fc1 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -2374,11 +2374,10 @@ class YoutubeDL(object):
                 self.get_encoding()))
         write_string(encoding_str, encoding=None)
 
-        writeln_debug = lambda *s: self._write_string('[debug] %s\n' % (''.join(s), ))
-
-        writeln_debug('youtube-dl version ', __version__, (' (single file build)' if ytdl_is_updateable() else ''))
+        self._write_string('[debug] youtube-dl version ' + __version__ + (' (single file build)\n' if ytdl_is_updateable() else '\n'))
         if _LAZY_LOADER:
-            writeln_debug('Lazy loading extractors enabled')
+            self._write_string('[debug] Lazy loading extractors enabled\n')
+        writeln_debug = lambda *s: self._write_string('[debug] %s\n' % (''.join(s), ))  # moved down for easier merge
         try:
             sp = subprocess.Popen(
                 ['git', 'rev-parse', '--short', 'HEAD'],