- commit
- b1a95260ae3a49c5c0d712d70deaca3923779606
- parent
- 337eab74fbe0c0ed4d5612051eacfe817145bc38
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-11-05 09:17
rm cache on format_item potential memory leak see https://docs.astral.sh/ruff/rules/cached-instance-method/
Diffstat
| M | cplay.py | 2 | -- |
1 files changed, 0 insertions, 2 deletions
diff --git a/cplay.py b/cplay.py
@@ -399,7 +399,6 @@ class Filelist(List): 399 399 title += 'search "%s"/' % self.rsearch_str 400 400 return title 401 401402 -1 @functools.lru_cache403 402 def format_item(self, item): 404 403 s = super().format_item(item) 405 404 ext = get_ext(item) @@ -412,7 +411,6 @@ class Filelist(List): 412 411 self.path = path 413 412 os.chdir(path) 414 413 relpath.cache_clear()415 -1 self.format_item.cache_clear()416 414 self.search_cache = [] 417 415 self.all_items = [] 418 416 self.rsearch_str = ''