Fix some open calls were not being made through pathlib

This was causing the documentation to fail to build under Python 3.5.
This commit is contained in:
Lonami Exo
2019-01-06 21:36:32 +01:00
parent e565552ae9
commit b57e3e3e0a
3 changed files with 3 additions and 3 deletions

View File

@@ -288,7 +288,7 @@ class DocsWriter:
def __enter__(self):
# Sanity check
self.filename.parent.mkdir(parents=True, exist_ok=True)
self.handle = open(self.filename, 'w', encoding='utf-8')
self.handle = self.filename.open('w', encoding='utf-8')
return self
def __exit__(self, exc_type, exc_val, exc_tb):