bytestringify tmpdir in convert plugin

This works fine in py 3.5, but not 3.4
This commit is contained in:
Johnny Robeson 2016-07-09 03:50:16 -04:00
parent cb6efc4c22
commit 3db81a3345

View file

@ -428,6 +428,7 @@ class ConvertPlugin(BeetsPlugin):
# Create a temporary file for the conversion.
tmpdir = self.config['tmpdir'].get()
tmpdir = util.bytestring_path(tmpdir) if tmpdir else None
fd, dest = tempfile.mkstemp(b'.' + ext, dir=tmpdir)
os.close(fd)
dest = util.bytestring_path(dest)