diff --git a/setup.py b/setup.py index 4e75c12d..03bcfe74 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,7 @@ from __future__ import with_statement +from io import open import os import re try: @@ -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):