From 139d22fe9ffaa33efb771edb9558d0fb9911822c Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 7 Sep 2016 21:01:24 -0400 Subject: [PATCH] Template strings must always be unicode (#2188) This seems to be half the problem. --- beets/ui/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index 1c208a429..0627c8803 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -837,7 +837,7 @@ class CommonOptionsParser(optparse.OptionParser, object): """ path = optparse.Option(*flags, nargs=0, action='callback', callback=self._set_format, - callback_kwargs={'fmt': '$path', + callback_kwargs={'fmt': u'$path', 'store_true': True}, help=u'print paths for matched items or albums') self.add_option(path)