projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e1409f
)
[devscripts/make_lazy_extractors] Fix making lazy extractors on python 3 under Windows
author
Sergey M․
<dstftw@gmail.com>
Thu, 23 Feb 2017 19:09:13 +0000
(
02:09
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 23 Feb 2017 19:09:51 +0000
(
02:09
+0700)
devscripts/make_lazy_extractors.py
patch
|
blob
|
history
diff --git
a/devscripts/make_lazy_extractors.py
b/devscripts/make_lazy_extractors.py
index 19114d30d1aa59e394e0c35e7ec9446eb4969c56..0a1762dbce85adf9049529ec15bdb61510787d0a 100644
(file)
--- a/
devscripts/make_lazy_extractors.py
+++ b/
devscripts/make_lazy_extractors.py
@@
-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)