From 3db81a3345913dc32d34f038d0f8fee35b64fbcf Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Sat, 9 Jul 2016 03:50:16 -0400 Subject: [PATCH] bytestringify tmpdir in convert plugin This works fine in py 3.5, but not 3.4 --- beetsplug/convert.py | 1 + 1 file changed, 1 insertion(+) diff --git a/beetsplug/convert.py b/beetsplug/convert.py index 4eb8a1be3..4c64b8a2e 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -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)