Template strings must always be unicode (#2188)

This seems to be half the problem.
This commit is contained in:
Adrian Sampson 2016-09-07 21:01:24 -04:00
parent 7a2bdf502f
commit 139d22fe9f

View file

@ -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)