revert accidental 20685 regressions (and therefore 20699 corrections)
svn: r20710
This commit is contained in:
parent
d1bda1ec09
commit
dbe7fbc248
@ -417,8 +417,8 @@ class CommandLineReport(object):
|
||||
self.options_help[name].append(option.get_help())
|
||||
else:
|
||||
print(_("Unknown option: %s") % option)
|
||||
print(_(" Valid options are:"), ", ".join(
|
||||
list(self.options_dict.keys())))
|
||||
print(_(" Valid options are:"),
|
||||
", ".join(list(self.options_dict.keys())))
|
||||
print((_(" Use '%(donottranslate)s' to see description "
|
||||
"and acceptable values") %
|
||||
{'donottranslate' : "show=option"}))
|
||||
@ -437,8 +437,6 @@ class CommandLineReport(object):
|
||||
if _format_str:
|
||||
self.options_dict['off'] = _format_str
|
||||
|
||||
self.option_class.handler.output = self.options_dict['of']
|
||||
|
||||
self.css_filename = None
|
||||
_chosen_format = None
|
||||
|
||||
@ -498,8 +496,8 @@ class CommandLineReport(object):
|
||||
|
||||
else:
|
||||
print(_("Ignoring unknown option: %s") % opt )
|
||||
print(_(" Valid options are:"), ", ".join(
|
||||
self.options_dict.keys()))
|
||||
print(_(" Valid options are:"),
|
||||
", ".join(list(self.options_dict.keys())))
|
||||
print(_(" Use '%(donottranslate)s' to see description "
|
||||
"and acceptable values") %
|
||||
{'donottranslate' : "show=option"})
|
||||
@ -535,8 +533,7 @@ class CommandLineReport(object):
|
||||
if not self.doc_option_class:
|
||||
return # this docgen type has no options
|
||||
try:
|
||||
if (issubclass(self.doc_option_class, object) or # new class
|
||||
isinstance(self.doc_option_class, ClassType)): # old class
|
||||
if issubclass(self.doc_option_class, object):
|
||||
self.doc_options = self.doc_option_class(self.raw_name,
|
||||
self.database)
|
||||
doc_options_dict = self.doc_options.options_dict
|
||||
|
@ -225,12 +225,12 @@ class OptionListCollection(object):
|
||||
f.write(' <listitem '
|
||||
'number="%d" value=%s/>\n' % (
|
||||
list_index,
|
||||
quoteattr(cuni(list_data))) )
|
||||
quoteattr(str(list_data))) )
|
||||
f.write(' </option>\n')
|
||||
else:
|
||||
f.write(' <option name=%s value=%s/>\n' % (
|
||||
quoteattr(option_name),
|
||||
quoteattr(cuni(option_data))) )
|
||||
quoteattr(str(option_data))) )
|
||||
for docgen_name in self.docgen_names:
|
||||
if module_docgen_opts[docgen_name]:
|
||||
for ix, data in enumerate(module_docgen_opts[docgen_name]):
|
||||
@ -238,7 +238,7 @@ class OptionListCollection(object):
|
||||
'name=%s value=%s/>\n' %
|
||||
(quoteattr(docgen_name),
|
||||
quoteattr(data[0]),
|
||||
quoteattr(cuni(data[1])) ))
|
||||
quoteattr(str(data[1])) ))
|
||||
self.write_module_common(f, option_list)
|
||||
|
||||
f.write('</module>\n')
|
||||
|
Loading…
Reference in New Issue
Block a user