mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:17:07 -05:00 
			
		
		
		
	[devscripts/make_lazy_extractors] Fix making lazy extractors on python 3 under Windows
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
from __future__ import unicode_literals, print_function
 | 
			
		||||
 | 
			
		||||
from inspect import getsource
 | 
			
		||||
import io
 | 
			
		||||
import os
 | 
			
		||||
from os.path import dirname as dirn
 | 
			
		||||
import sys
 | 
			
		||||
@@ -95,5 +96,5 @@ module_contents.append(
 | 
			
		||||
 | 
			
		||||
module_src = '\n'.join(module_contents) + '\n'
 | 
			
		||||
 | 
			
		||||
with open(lazy_extractors_filename, 'wt') as f:
 | 
			
		||||
with io.open(lazy_extractors_filename, 'wt', encoding='utf-8') as f:
 | 
			
		||||
    f.write(module_src)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user