[utils] Deprecate random_uuidv4 (#17301)

Authored by: doe1080
This commit is contained in:
doe1080
2026-08-19 15:42:14 +09:00
committed by GitHub
parent 4ce0e4d331
commit 0d1e029d14
4 changed files with 9 additions and 10 deletions
-7
View File
@@ -4730,13 +4730,6 @@ def clean_podcast_url(url):
return re.sub(r'^\w+://(\w+://)', r'\1', url)
_HEX_TABLE = '0123456789abcdef'
def random_uuidv4():
return re.sub(r'[xy]', lambda x: _HEX_TABLE[random.randint(0, 15)], 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx')
def make_parent_dirs(path):
if dir_name := os.path.dirname(path):
os.makedirs(dir_name, exist_ok=True)