Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close file handles of Popen #4

Merged
merged 5 commits into from
Apr 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pylint: disable=consider-using-with
  • Loading branch information
mbarkhau authored Apr 30, 2021
commit 806b3894f563bd270c3ed7782e1e0931131879b3
1 change: 1 addition & 0 deletions src/markdown_katex/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class KatexError(Exception):


def _write_tex2html(cmd_parts: typ.List[str], tex: str, tmp_output_file: pl.Path) -> None:
# pylint: disable=consider-using-with ; not supported on py27
tmp_input_file = TMP_DIR / tmp_output_file.name.replace(".html", ".tex")
input_data = tex.encode(KATEX_INPUT_ENCODING)

Expand Down