diff options
| author | earthyoung <studydatawithme@gmail.com> | 2024-10-28 15:59:18 +0900 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-10-28 14:10:12 +0100 |
| commit | 555f2412cba4c5844408042e92f3bf9fa5c2392c (patch) | |
| tree | 8bae937830c491c5617558614d16ab15b3c4466e | |
| parent | 43287cbb87bc5e99a2fd384082a719d8b4d253c6 (diff) | |
Refs #34900 -- Removed usage of deprecated glob.glob1().
| -rw-r--r-- | django/core/cache/backends/filebased.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/cache/backends/filebased.py b/django/core/cache/backends/filebased.py index 29d49c0ede..cbf47e4e16 100644 --- a/django/core/cache/backends/filebased.py +++ b/django/core/cache/backends/filebased.py @@ -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) ] |
