Skip to content

Commit e66d4fd

Browse files
committed
[py3] Fix README.rst reading.
The README.rst file contains non-ascii characters; an encoding must be provided when opening it.
1 parent c52bd31 commit e66d4fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- coding: utf-8 -*-
22
#!/usr/bin/env python
33

4+
import codecs
5+
46
try:
57
from setuptools import setup
68
except ImportError:
@@ -12,7 +14,7 @@
1214
name='webstack-django-sorting',
1315
version=__version__,
1416
description="Easy sorting of tables with Django",
15-
long_description=open('README.rst').read(),
17+
long_description=codecs.open('README.rst', 'r', 'utf-8').read(),
1618
author='Stéphane Raimbault',
1719
author_email='[email protected]',
1820
url='http://github.com/webstack/webstack-django-sorting/',

0 commit comments

Comments
 (0)