diff --git a/docs/conf.py b/docs/conf.py index 0950f217f..3ff2c91b8 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -23,7 +23,7 @@ # version is used. sys.path.insert(0, project_root) -import dateparser +import dateparser # noqa: E402 # -- General configuration --------------------------------------------- diff --git a/setup.py b/setup.py index c8f69889a..aa9db47b8 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="utf8").read()) +history = re.sub(r':mod:|:class:|:func:', '', open('HISTORY.rst', encoding="utf8").read()) test_requirements = open('tests/requirements.txt').read().splitlines()