mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
Dict rewritten as literal
This commit is contained in:
@@ -166,8 +166,7 @@ class FormSpawner(MockSpawner):
|
|||||||
options_form = "IMAFORM"
|
options_form = "IMAFORM"
|
||||||
|
|
||||||
def options_from_form(self, form_data):
|
def options_from_form(self, form_data):
|
||||||
options = {}
|
options = {'notspecified': 5}
|
||||||
options['notspecified'] = 5
|
|
||||||
if 'bounds' in form_data:
|
if 'bounds' in form_data:
|
||||||
options['bounds'] = [int(i) for i in form_data['bounds']]
|
options['bounds'] = [int(i) for i in form_data['bounds']]
|
||||||
if 'energy' in form_data:
|
if 'energy' in form_data:
|
||||||
@@ -379,9 +378,9 @@ class MockHub(JupyterHub):
|
|||||||
|
|
||||||
class MockSingleUserServer(SingleUserNotebookApp):
|
class MockSingleUserServer(SingleUserNotebookApp):
|
||||||
"""Mock-out problematic parts of single-user server when run in a thread
|
"""Mock-out problematic parts of single-user server when run in a thread
|
||||||
|
|
||||||
Currently:
|
Currently:
|
||||||
|
|
||||||
- disable signal handler
|
- disable signal handler
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user