Skip to content

Commit

Permalink
Merge pull request #294 from neirbowj/explicit_encoding
Browse files Browse the repository at this point in the history
Use ASCII decoding explicitly in setup.py
  • Loading branch information
wiggin15 authored Feb 11, 2021
2 parents 01c7b64 + f690a2b commit 7a85efb
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

1 comment on commit 7a85efb

@kloczek
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any plans to make new release? :P

Please sign in to comment.