[scripts] ensure files use 'utf-8' encoding and '\n' newlines (#7872)

This commit is contained in:
Mike Fährmann
2025-07-22 16:53:40 +02:00
parent afc5b9c9c6
commit e8b2a496ba
7 changed files with 21 additions and 16 deletions

View File

@@ -228,8 +228,8 @@ and https://github.com/mikf/gallery-dl/graphs/contributors
def parse_docs_configuration():
doc_path = util.path("docs", "configuration.rst")
with open(doc_path, encoding="utf-8") as fp:
path = util.path("docs", "configuration.rst")
with util.open(path) as fp:
doc_lines = fp.readlines()
sections = {}