From cac747892be07a06d0315917fc72cfd06d10e471 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 13 Feb 2023 17:06:56 +0100 Subject: Fix tests on Windows, add Windows CI (#1186) * fix tests on Windows, add Windows CI * remove test safeguards from coverage --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 3b01f43..0ccbbbd 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,6 @@ Installation script for the OpenSSL package. """ -import codecs import os import re @@ -21,10 +20,12 @@ META_PATH = os.path.join("src", "OpenSSL", "version.py") def read_file(*parts): """ - Build an absolute path from *parts* and and return the contents of the + Build an absolute path from *parts* and return the contents of the resulting file. Assume UTF-8 encoding. """ - with codecs.open(os.path.join(HERE, *parts), "rb", "ascii") as f: + with open( + os.path.join(HERE, *parts), "r", encoding="utf-8", newline=None + ) as f: return f.read() -- cgit v1.2.1