We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6025c2a commit b770246Copy full SHA for b770246
audioread/__init__.py
@@ -69,10 +69,8 @@ def available_backends(flush_cache=False):
69
If the parameter `flush_cache` is set to `True`, then the cache
70
will be flushed and the backend list will be reconstructed.
71
"""
72
- if flush_cache:
73
- BACKENDS.clear()
74
75
- if BACKENDS:
+ if BACKENDS and not flush_cache:
76
return BACKENDS
77
78
# Standard-library WAV and AIFF readers.
@@ -99,7 +97,7 @@ def available_backends(flush_cache=False):
99
97
result.append(ffdec.FFmpegAudioFile)
100
98
101
# Cache the backends we found
102
- BACKENDS.extend(result)
+ BACKENDS[:] = result
103
104
105
0 commit comments