Skip to content

Commit 9214b5e

Browse files
authored
Fix Python 3 compatibility
1 parent 5ceeb05 commit 9214b5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from setuptools import setup
22

3+
from io import open
34

45
setup(
56
name='pytest-mock',
@@ -20,7 +21,7 @@
2021
author='Bruno Oliveira',
2122
author_email='[email protected]',
2223
description='Thin-wrapper around the mock package for easier use with py.test',
23-
long_description=open('README.rst').read(),
24+
long_description=open('README.rst', encoding='utf-8').read(),
2425
keywords="pytest mock",
2526
classifiers=[
2627
'Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)