Skip to content

Commit e347af0

Browse files
author
Nejc Stebe
committed
make function private
1 parent cfcd99f commit e347af0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

render_machine/render_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _kill_process(proc: subprocess.Popen) -> None:
7171
proc.kill()
7272

7373

74-
def sanitize_script_output(script_output: str) -> str:
74+
def _sanitize_script_output(script_output: str) -> str:
7575
# this function removes the escape codes that clear the console
7676
clear_console_escape_codes_pattern = r"(?:\033\[[^a-zA-Z]*[a-zA-Z])*\033\[2J(?:\033\[[^a-zA-Z]*[a-zA-Z])*"
7777

@@ -137,7 +137,7 @@ def execute_script( # noqa: C901
137137
stdout = ""
138138
elapsed_time = time.time() - start_time
139139

140-
sanitized_script_output = sanitize_script_output(stdout)
140+
sanitized_script_output = _sanitize_script_output(stdout)
141141

142142
# Log the info about the script execution
143143
if verbose:

0 commit comments

Comments
 (0)