Formatting + type hints
This commit is contained in:
parent
1782fc69d1
commit
610eac0718
1 changed files with 15 additions and 13 deletions
|
|
@ -972,9 +972,7 @@ class Preview(base.CommandBase, common.BaseEdit):
|
|||
self.disp(_('File "{file}" doesn\'t exist!').format(file=self.args.file))
|
||||
self.host.quit(C.EXIT_NOT_FOUND)
|
||||
|
||||
self.syntax = await guess_syntax_from_path(
|
||||
self.host, self.content_file_path
|
||||
)
|
||||
self.syntax = await guess_syntax_from_path(self.host, self.content_file_path)
|
||||
|
||||
# at this point the syntax is converted, we can display the preview
|
||||
preview_file = tempfile.NamedTemporaryFile(suffix=".xhtml", delete=False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue