Skip to content

Commit

Permalink
use unlink
Browse files Browse the repository at this point in the history
  • Loading branch information
sunethwarna committed Feb 5, 2024
1 parent 8b78d0e commit 23a5ef4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/process_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from collections import OrderedDict
from pathlib import Path
import subprocess
import os

from entry_utilities import default_header_dict
from entry_utilities import file_navigation_levels
Expand Down Expand Up @@ -260,7 +259,7 @@ def AddPythonSnippetOutputs(file_path: Path) -> None:
output_lines.append("```\n")

# remove the temp file
os.remove(temp_file_path)
Path(temp_file_path).unlink()

if is_existing_output_found:
index += temp_index + lines[temp_index:].index("```\n") + 1
Expand Down

0 comments on commit 23a5ef4

Please sign in to comment.