mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[5.1.x] Refs #34900 -- Removed usage of deprecated glob.glob1().
Backport of 555f2412cb from main.
This commit is contained in:
2
django/core/cache/backends/filebased.py
vendored
2
django/core/cache/backends/filebased.py
vendored
@@ -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)
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user