The :rst:dir:py:module directive doesn't output its `platform` option value anymore.

(It was the only thing that the directive did output, and therefore quite inconsistent.)
This commit is contained in:
Georg Brandl 2011-01-08 16:09:49 +01:00
parent a79758baed
commit 7139a1c882
2 changed files with 6 additions and 9 deletions

View File

@ -5,6 +5,10 @@ Release 1.1 (in development)
* Added a Texinfo builder.
* Incompatibility: The :rst:dir:`py:module` directive doesn't output
its ``platform`` option value anymore. (It was the only thing that
the directive did output, and therefore quite inconsistent.)
* Added i18n support for content, a ``gettext`` builder and
related utilities.

View File

@ -419,15 +419,8 @@ class PyModule(Directive):
targetnode = nodes.target('', '', ids=['module-' + modname], ismod=True)
self.state.document.note_explicit_target(targetnode)
ret = [targetnode]
# XXX this behavior of the module directive is a mess...
if 'platform' in self.options:
platform = self.options['platform']
node = nodes.paragraph()
node += nodes.emphasis('', _('Platforms: '))
node += nodes.Text(platform, platform)
ret.append(node)
# the synopsis isn't printed; in fact, it is only used in the
# modindex currently
# the platform and synopsis aren't printed; in fact, they are only used
# in the modindex currently
if not noindex:
indextext = _('%s (module)') % modname
inode = addnodes.index(entries=[('single', indextext,