Skip to content
This repository was archived by the owner on Apr 17, 2021. It is now read-only.

Commit 74a4c94

Browse files
committed
python3 installation support
1 parent 3dae21f commit 74a4c94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
from distutils.core import setup
33
from setuptools import find_packages
44

5-
readme = open('README.rst', 'r')
6-
readme_text = readme.read()
7-
readme.close()
5+
6+
with open('README.rst', 'rb') as readme:
7+
readme_text = readme.read().decode('utf-8')
88

99
setup(
1010
name='django-bootstrap-pagination',
@@ -16,7 +16,7 @@
1616
url='https://github.com/jmcclell/django-bootstrap-pagination',
1717
license='MIT licence, see LICENCE',
1818
description='Render Django Page objects as Bootstrap 3.x Pagination compatible HTML',
19-
long_description=readme_text.encode('UTF-8'),
19+
long_description=readme_text,
2020
zip_safe=False,
2121
include_package_data=True,
2222
classifiers=[

0 commit comments

Comments
 (0)