diff options
-rwxr-xr-x | bin/audio_test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/audio_test b/bin/audio_test index 466b760..7bd6c44 100755 --- a/bin/audio_test +++ b/bin/audio_test @@ -24,6 +24,10 @@ except ImportError: print((sys.version), file=sys.stderr) sys.exit(127) +try: + from collections.abc import Callable +except ImportError: + from collections import Callable # backward compatible #Frequency bands for FFT BINS = 256 @@ -124,7 +128,7 @@ class PAVolumeController(object): self._volume = None self.identifier = None self.method = method - if not isinstance(method, collections.Callable): + if not isinstance(method, Callable): self.method = self._pactl_output self.logger = logger |