Skip to content

Commit 00fb7f7

Browse files
committed
Fix UnicodeDecodeError under PY3.
1 parent ca98288 commit 00fb7f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
from setuptools import setup
4-
import os, sys
4+
import os, sys, codecs
55

66
try:
77
# nose uses multiprocessing if available.
@@ -30,7 +30,7 @@
3030
name="keen",
3131
version="0.3.24",
3232
description="Python Client for Keen IO",
33-
long_description=open(os.path.join('README.rst'), 'r').read(),
33+
long_description=codecs.open(os.path.join('README.rst'), 'r', encoding='UTF-8').read(),
3434
author="Keen IO",
3535
author_email="[email protected]",
3636
url="https://github.com/keenlabs/KeenClient-Python",

0 commit comments

Comments
 (0)