MINGW-packages/mingw-w64-python-elasticsearch/0001-elasticsearch-setup-open-utf8-encoding.patch
2024-07-05 05:30:52 +00:00

12 lines
414 B
Diff

--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@
r"__versionstr__\s+=\s+[\"\']([^\"\']+)[\"\']", f.read()
).group(1)
-with open(join(base_dir, "README.rst")) as f:
+with open(join(base_dir, "README.rst"), encoding='UTF-8') as f:
# Remove reST raw directive from README as they're not allowed on PyPI
# Those blocks start with a newline and continue until the next newline
mode = None