refactor: clear() přes subprocess místo os.system
This commit is contained in:
+3
-2
@@ -1,8 +1,9 @@
|
||||
import csv
|
||||
import re
|
||||
import subprocess
|
||||
from collections import Counter
|
||||
from importlib.resources import files
|
||||
from os import name, system
|
||||
from os import name
|
||||
from random import randint
|
||||
from typing import Any
|
||||
|
||||
@@ -49,7 +50,7 @@ def show_throw(throw: str) -> str:
|
||||
return pretty_list
|
||||
|
||||
def clear() -> None:
|
||||
_ = system('cls') if name == 'nt' else system('clear')
|
||||
_ = subprocess.call('cls', shell=True) if name == 'nt' else subprocess.call('clear', shell=True)
|
||||
|
||||
def translate_letters_to_numbers(inp_hod: str, count: int) -> tuple[bool, str]:
|
||||
inp_temp: str = ""
|
||||
|
||||
Reference in New Issue
Block a user