diff options
Diffstat (limited to 'sphinx/builders/text.py')
-rw-r--r-- | sphinx/builders/text.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/text.py b/sphinx/builders/text.py index cad379cf4..c79caafbf 100644 --- a/sphinx/builders/text.py +++ b/sphinx/builders/text.py @@ -81,7 +81,7 @@ class TextBuilder(Builder): outfilename = path.join(self.outdir, os_path(docname) + self.out_suffix) ensuredir(path.dirname(outfilename)) try: - with open(outfilename, 'w', encoding='utf-8') as f: # type: ignore + with open(outfilename, 'w', encoding='utf-8') as f: f.write(self.writer.output) except (IOError, OSError) as err: logger.warning(__("error writing file %s: %s"), outfilename, err) |