mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user