From a92b20c1309f4930a35dc5163d02c0a61c40c101 Mon Sep 17 00:00:00 2001 From: atharmohammad Date: Tue, 14 Dec 2021 15:40:52 +0530 Subject: [PATCH] defined utf-8 encoding for windows --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c8f69889a..7c0d136f0 100644 --- a/setup.py +++ b/setup.py @@ -5,8 +5,8 @@ open('dateparser/__init__.py').read()).group(1) introduction = re.sub(r':members:.+|..\sautomodule::.+|:class:|:func:|:ref:', - '', open('docs/introduction.rst').read()) -history = re.sub(r':mod:|:class:|:func:', '', open('HISTORY.rst').read()) + '', open('docs/introduction.rst', encoding='utf-8').read()) +history = re.sub(r':mod:|:class:|:func:', '', open('HISTORY.rst', encoding='utf-8').read()) test_requirements = open('tests/requirements.txt').read().splitlines()