Reformat docstring causing Sphinx error

This commit is contained in:
Carol Willing
2017-07-24 08:32:12 -07:00
parent 710ed0a5c8
commit 2da115f5c4

View File

@@ -356,14 +356,14 @@ class Spawner(LoggingConfigurable):
This can be set independent of any concrete spawner implementation.
Example:
Example::
from subprocess import check_call
def my_hook(spawner):
username = spawner.user.name
check_call(['./examples/bootstrap-script/bootstrap.sh', username])
from subprocess import check_call
def my_hook(spawner):
username = spawner.user.name
check_call(['./examples/bootstrap-script/bootstrap.sh', username])
c.Spawner.pre_spawn_hook = my_hook
c.Spawner.pre_spawn_hook = my_hook
"""
).tag(config=True)