Revert unneccessary change

This commit is contained in:
Kovid Goyal 2018-01-05 11:11:54 +05:30
parent cc368c05ca
commit c6db6148ca
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -156,10 +156,7 @@ class OptionSet(object):
if opt.help:
opt.help = t(opt.help)
if opt.name == 'use_primary_find_in_search':
h = opt.help
if isinstance(h, bytes):
h = h.decode('utf-8', 'replace')
opt.help = h.format(u'ñ')
opt.help = opt.help.format(u'ñ')
def option_parser(self, user_defaults=None, usage='', gui_mode=False):
from calibre.utils.config import OptionParser