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 6b9d766 commit 0b5b20dCopy full SHA for 0b5b20d
beetsplug/absubmit.py
@@ -24,7 +24,7 @@
24
import subprocess
25
import tempfile
26
27
-import distutils
+from distutils.spawn import find_executable
28
import requests
29
30
from beets import plugins
@@ -79,9 +79,10 @@ def __init__(self):
79
# Extractor found, will exit with an error if not called with
80
# the correct amount of arguments.
81
pass
82
- # Get the executable location on the system,
83
- # needed to calculate the sha1 hash.
84
- self.extractor = distutils.spawn.find_executable(self.extractor)
+
+ # Get the executable location on the system, which we need
+ # to calculate the SHA-1 hash.
85
+ self.extractor = find_executable(self.extractor)
86
87
# Calculate extractor hash.
88
self.extractor_sha = hashlib.sha1()
0 commit comments