~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/plugin-api.txt

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-23 11:11:22 UTC
  • mfrom: (5177.1.1 integration2)
  • Revision ID: pqm@pqm.ubuntu.com-20100423111122-a5zc2qm7v9qrcxmf
(vila, for gz) Manually assign docstrings to command objects,
        so that they work with python -OO

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
short complete sentence summarizing the plugin.  The full docstring is
187
187
shown by ``bzr help PLUGIN_NAME``.
188
188
 
189
 
Remember that to be effective, the module docstring must be the first
190
 
statement in the file.  It may come after comments but it must be before
191
 
any import statements.
 
189
This is a user-visible docstring so should be prefixed with ``__doc__ =``
 
190
to ensure help works under ``python -OO`` with docstrings stripped.
192
191
 
193
192
API version
194
193
-----------