A feature-rich command-line audio/video downloader
[devscripts/make_lazy_extractors] Fix making lazy extractors on python 3 under Windows
Sergey M․19f3821821ad
diff --git a/devscripts/make_lazy_extractors.py b/devscripts/make_lazy_extractors.pyindex 19114d30d1..0a1762dbce 100644--- a/devscripts/make_lazy_extractors.py+++ b/devscripts/make_lazy_extractors.py@@ -1,6 +1,7 @@from __future__ import unicode_literals, print_functionfrom inspect import getsource+import ioimport osfrom os.path import dirname as dirnimport 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)