mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Reformat docstring causing Sphinx error
This commit is contained in:
@@ -356,14 +356,14 @@ class Spawner(LoggingConfigurable):
|
|||||||
|
|
||||||
This can be set independent of any concrete spawner implementation.
|
This can be set independent of any concrete spawner implementation.
|
||||||
|
|
||||||
Example:
|
Example::
|
||||||
|
|
||||||
from subprocess import check_call
|
from subprocess import check_call
|
||||||
def my_hook(spawner):
|
def my_hook(spawner):
|
||||||
username = spawner.user.name
|
username = spawner.user.name
|
||||||
check_call(['./examples/bootstrap-script/bootstrap.sh', username])
|
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)
|
).tag(config=True)
|
||||||
|
Reference in New Issue
Block a user