Skip to content

Commit

Permalink
Use ASCII decoding explicitly in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
neirbowj committed Dec 31, 2020
1 parent 293d782 commit f690a2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from __future__ import with_statement

from io import open
import os
import re
try:
Expand All @@ -14,8 +15,9 @@
NAME = 'colorama'


def read_file(path):
with open(os.path.join(os.path.dirname(__file__), path)) as fp:
def read_file(path, encoding='ascii'):
with open(os.path.join(os.path.dirname(__file__), path),
encoding=encoding) as fp:
return fp.read()

def _get_version_match(content):
Expand Down

0 comments on commit f690a2b

Please sign in to comment.