Cleanup previous PR

This commit is contained in:
Kovid Goyal 2024-10-21 18:50:32 +05:30
parent 2a727fa189
commit ea498af93c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ class PDBOutput(OutputFormatPlugin):
OptionRecommendation(name='format', recommended_value='doc', OptionRecommendation(name='format', recommended_value='doc',
level=OptionRecommendation.LOW, level=OptionRecommendation.LOW,
short_switch='f', choices=ALL_FORMAT_WRITERS, short_switch='f', choices=ALL_FORMAT_WRITERS,
help=(_('Format to use inside the PDB container. Choices are:') + ', '.join(ALL_FORMAT_WRITERS))), help=(_('Format to use inside the PDB container. Choices are: ') + ', '.join(ALL_FORMAT_WRITERS))),
OptionRecommendation(name='pdb_output_encoding', recommended_value='cp1252', OptionRecommendation(name='pdb_output_encoding', recommended_value='cp1252',
level=OptionRecommendation.LOW, level=OptionRecommendation.LOW,
help=_('Specify the character encoding of the output document. ' help=_('Specify the character encoding of the output document. '

View File

@ -31,7 +31,7 @@ def _import_readers():
} }
ALL_FORMAT_WRITERS = ('doc', 'ereader', 'ztxt') # keep sorted alphabetically ALL_FORMAT_WRITERS = 'doc', 'ereader', 'ztxt' # keep sorted alphabetically
FORMAT_WRITERS = None FORMAT_WRITERS = None

View File

@ -289,7 +289,7 @@ class ZshCompleter: # {{{
elif opt.choices: elif opt.choices:
arg += "(%s)"%'|'.join(opt.choices) arg += "(%s)"%'|'.join(opt.choices)
elif set(file_map).intersection(set(opt._long_opts)): elif set(file_map).intersection(set(opt._long_opts)):
k = list(set(file_map).intersection(set(opt._long_opts))) k = tuple(set(file_map).intersection(set(opt._long_opts)))
exts = file_map[k[0]] exts = file_map[k[0]]
if exts: if exts:
exts = ('*.%s'%x for x in sorted(exts + [x.upper() for x in exts])) exts = ('*.%s'%x for x in sorted(exts + [x.upper() for x in exts]))