diff options
author | Maximilian Hils <git@maximilianhils.com> | 2023-02-13 17:06:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-13 10:06:56 -0600 |
commit | cac747892be07a06d0315917fc72cfd06d10e471 (patch) | |
tree | 0112d78c7697b18ddf84c84a48d1507aff04f88a /setup.py | |
parent | 3517764ed5517a6d76078eb7e6696f1c0e153ad1 (diff) | |
download | pyopenssl-cac747892be07a06d0315917fc72cfd06d10e471.tar.gz |
Fix tests on Windows, add Windows CI (#1186)
* fix tests on Windows, add Windows CI
* remove test safeguards from coverage
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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() |