Skip to content

Commit b8a86dc

Browse files
committed
[core] Revise 1f7c6f8 to help downstream merger (possibly)
1 parent 2389c7c commit b8a86dc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

youtube_dl/YoutubeDL.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,11 +2374,10 @@ def print_debug_header(self):
23742374
self.get_encoding()))
23752375
write_string(encoding_str, encoding=None)
23762376

2377-
writeln_debug = lambda *s: self._write_string('[debug] %s\n' % (''.join(s), ))
2378-
2379-
writeln_debug('youtube-dl version ', __version__, (' (single file build)' if ytdl_is_updateable() else ''))
2377+
self._write_string('[debug] youtube-dl version ' + __version__ + (' (single file build)\n' if ytdl_is_updateable() else '\n'))
23802378
if _LAZY_LOADER:
2381-
writeln_debug('Lazy loading extractors enabled')
2379+
self._write_string('[debug] Lazy loading extractors enabled\n')
2380+
writeln_debug = lambda *s: self._write_string('[debug] %s\n' % (''.join(s), )) # moved down for easier merge
23822381
try:
23832382
sp = subprocess.Popen(
23842383
['git', 'rev-parse', '--short', 'HEAD'],

0 commit comments

Comments
 (0)