From 6d04d773c3bedfe5ed2cde907526ef1488f5f8a5 Mon Sep 17 00:00:00 2001 From: tcely Date: Mon, 2 Jun 2025 14:39:07 -0400 Subject: [PATCH] Remove `glob_quote` from sync/utils.py --- tubesync/sync/utils.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tubesync/sync/utils.py b/tubesync/sync/utils.py index fc7874fd..46668c25 100644 --- a/tubesync/sync/utils.py +++ b/tubesync/sync/utils.py @@ -95,20 +95,6 @@ def resize_image_to_height(image, width, height): return image -def glob_quote(filestr): - _glob_specials = { - '?': '[?]', - '*': '[*]', - '[': '[[]', - ']': '[]]', # probably not needed, but it won't hurt - } - - if not isinstance(filestr, str): - raise TypeError(f'filestr must be a str, got "{type(filestr)}"') - - return filestr.translate(str.maketrans(_glob_specials)) - - def file_is_editable(filepath): ''' Checks that a file exists and the file is in an allowed predefined tuple of