Refs #34900 -- Removed usage of deprecated glob.glob1().

This commit is contained in:
earthyoung 2024-10-28 15:59:18 +09:00 committed by Sarah Boyce
parent 43287cbb87
commit 555f2412cb
1 changed files with 1 additions and 1 deletions

View File

@ -166,5 +166,5 @@ class FileBasedCache(BaseCache):
""" """
return [ return [
os.path.join(self._dir, fname) os.path.join(self._dir, fname)
for fname in glob.glob1(self._dir, "*%s" % self.cache_suffix) for fname in glob.glob(f"*{self.cache_suffix}", root_dir=self._dir)
] ]