diff options
| author | Georg Brandl <georg@python.org> | 2014-09-22 11:06:42 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-09-22 11:06:42 +0200 |
| commit | 71cd2f7e50b692f9149cf5103b9bb289bc4f76c6 (patch) | |
| tree | 8cca6002fbe256402ef15c92b643715cef01954b /doc/extdev/tutorial.rst | |
| parent | 57e897669db1913db08beec2484ea1e9c8f105f7 (diff) | |
| download | sphinx-git-71cd2f7e50b692f9149cf5103b9bb289bc4f76c6.tar.gz | |
Change extension setup() return value to a dictionary of metadata.
This makes it possible to introduce more metadata values later.
Diffstat (limited to 'doc/extdev/tutorial.rst')
| -rw-r--r-- | doc/extdev/tutorial.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/extdev/tutorial.rst b/doc/extdev/tutorial.rst index 8f1773cdf..e7912406a 100644 --- a/doc/extdev/tutorial.rst +++ b/doc/extdev/tutorial.rst @@ -162,7 +162,7 @@ new Python module called :file:`todo.py` and add the setup function:: app.connect('doctree-resolved', process_todo_nodes) app.connect('env-purge-doc', purge_todos) - return '0.1' # identifies the version of our extension + return {'version': '0.1'} # identifies the version of our extension The calls in this function refer to classes and functions not yet written. What the individual calls do is the following: |
