Skip to content

Commit 9656d9c

Browse files
Fixed the encoding problem with setup.py register.
1 parent a11bf58 commit 9656d9c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- coding: utf-8 -*-
22

33
import os
4+
import sys
5+
reload(sys).setdefaultencoding('utf-8')
46
from distutils.core import setup, Extension
57

68
pysuinput_module = Extension('uinput._suinput',

0 commit comments

Comments
 (0)