Skip to content

Commit

Permalink
Open files in binary mode and then decode them as utf-8 (#37)
Browse files Browse the repository at this point in the history
Thank you, @fschulze.
#36
  • Loading branch information
henry0312 authored Aug 29, 2018
1 parent 17075dd commit 8f320d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from setuptools import setup

version = open('VERSION').read().strip()
long_description = open('README.md', encoding='utf-8').read()
version = open('VERSION', 'rb').read().decode('utf-8').strip()
long_description = open('README.md', 'rb').read().decode('utf-8')

setup(
name='pytest-codestyle',
Expand Down

0 comments on commit 8f320d1

Please sign in to comment.