From bad23e0270b1c4ee64173d26d30ba0b5eb4f174e Mon Sep 17 00:00:00 2001 From: Andre LaBranche Date: Fri, 8 Jan 2021 22:22:05 -0800 Subject: [PATCH] Switch to io.open to get the 'encoding' parameter --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c033c33..8bc0c4f 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ from os.path import dirname, join as joinpath from setuptools import setup, Extension +from io import open try: from subprocess import getoutput @@ -33,7 +34,8 @@ description = "Kerberos high-level interface" -long_description = open(joinpath(dirname(__file__), "README.md")).read() +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() long_description_content_type = "text/markdown"