def run(self, edit):
        try:
            selection = sublime.Region(0, self.view.size())
            html = generate_preview(self.view.substr(selection))
            temp_file = tempfile.NamedTemporaryFile(delete=False, suffix='.html')

            if 3000 > int(sublime.version()):
                temp_file.write(bytes(html, 'UTF-8'))
            else:
                temp_file.write(html)

            temp_file.close()
            webbrowser.open("file://" + temp_file.name)
        except Exception as e:
            sublime.error_message("Error in GitHubMarkdownPreview package:\n\n" + str(e))
dataset/ETHPy150Open zeyon/MarkdownHtmlPreview/src/MarkdownHtmlPreview.py/markdown_html_preview_command.run/swapped operands of `>`