Artrajz's picture
init
960cd20
raw
history blame contribute delete
No virus
251 Bytes
def check_is_none(item) -> bool:
# none -> True, not none -> False
return item is None or (isinstance(item, str) and str(item).isspace()) or str(item) == ""
def save_audio(audio, path):
with open(path, "wb") as f:
f.write(audio)