Browse Source

[devscripts/make_lazy_extractors] Fix making lazy extractors on python 3 under Windows

master
Sergey M․ 7 years ago
parent
commit
19f3821821
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 1 deletions
  1. 3
      devscripts/make_lazy_extractors.py

3
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)
Loading…
Cancel
Save