Skip to content

Commit 6025c2a

Browse files
committed
Simplified backend cache
1 parent d106a25 commit 6025c2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

audioread/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ def available_backends(flush_cache=False):
6969
If the parameter `flush_cache` is set to `True`, then the cache
7070
will be flushed and the backend list will be reconstructed.
7171
"""
72-
global BACKENDS
73-
if flush:
72+
if flush_cache:
7473
BACKENDS.clear()
7574

7675
if BACKENDS:

0 commit comments

Comments
 (0)