Skip to content

Commit b0d04d2

Browse files
committed
1 parent 0b743f8 commit b0d04d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/galaxy/managers/markdown_util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
import abc
1515
import base64
16-
import codecs
1716
import logging
1817
import os
1918
import re
@@ -851,7 +850,7 @@ def to_pdf_raw(basic_markdown: str, css_paths: Optional[list[str]] = None) -> by
851850
directory = tempfile.mkdtemp("gxmarkdown")
852851
index = os.path.join(directory, "index.html")
853852
try:
854-
output_file = codecs.open(index, "w", encoding="utf-8", errors="xmlcharrefreplace")
853+
output_file = open(index, "w", encoding="utf-8", errors="xmlcharrefreplace")
855854
output_file.write(as_html)
856855
output_file.close()
857856
html = weasyprint.HTML(filename=index)

0 commit comments

Comments
 (0)