1
0
mirror of https://github.com/django/django.git synced 2025-06-05 19:49:13 +00:00

[5.1.x] Refs #34900 -- Removed usage of deprecated glob.glob1().

Backport of 555f2412cba4c5844408042e92f3bf9fa5c2392c from main.
This commit is contained in:
earthyoung 2024-10-28 15:59:18 +09:00 committed by Sarah Boyce
parent 95067098dd
commit e8e5035511

View File

@ -166,5 +166,5 @@ class FileBasedCache(BaseCache):
"""
return [
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)
]