Skip to content

Commit 555f241

Browse files
earthyoungsarahboyce
authored andcommitted
Refs #34900 -- Removed usage of deprecated glob.glob1().
1 parent 43287cb commit 555f241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/core/cache/backends/filebased.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,5 @@ def _list_cache_files(self):
166166
"""
167167
return [
168168
os.path.join(self._dir, fname)
169-
for fname in glob.glob1(self._dir, "*%s" % self.cache_suffix)
169+
for fname in glob.glob(f"*{self.cache_suffix}", root_dir=self._dir)
170170
]

0 commit comments

Comments
 (0)