mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 18:36:21 +00:00
13 lines
290 B
Python
13 lines
290 B
Python
from utils.ansi import Ansi
|
|
|
|
|
|
def list_exclude(source: list, exclude: list):
|
|
return filter(lambda item: item not in exclude, source)
|
|
|
|
|
|
def eprint(msg: str):
|
|
print(Ansi.blend([Ansi.FAIL], "error: ") + msg)
|
|
|
|
|
|
def wprint(msg: str):
|
|
print(Ansi.blend([Ansi.WARNING], "warn: ") + msg) |