We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 627c78c commit da7ec38Copy full SHA for da7ec38
setup.py
@@ -3,6 +3,7 @@
3
4
import sys
5
import os
6
+import codecs
7
8
from setuptools import setup, find_packages
9
@@ -14,7 +15,8 @@ def load_version():
14
15
# load all vars into globals, otherwise
16
# the later function call using global vars doesn't work.
17
globals_dict = {}
- with open(os.path.join('imblearn', 'version.py')) as fp:
18
+ with codecs.open(os.path.join('imblearn', 'version.py'),
19
+ encoding='utf-8-sig') as fp:
20
exec(fp.read(), globals_dict)
21
22
return globals_dict
0 commit comments