mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 22:43:00 +00:00
DEV: Failover for urrlib.parse.quote in PY2.
This commit is contained in:
@@ -5,7 +5,11 @@
|
|||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from urllib.parse import quote
|
try:
|
||||||
|
from urllib.parse import quote
|
||||||
|
except ImportError:
|
||||||
|
# PY2 Compat
|
||||||
|
from urllib import quote
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from jinja2 import ChoiceLoader, FunctionLoader
|
from jinja2 import ChoiceLoader, FunctionLoader
|
||||||
@@ -177,7 +181,7 @@ class SingleUserNotebookApp(NotebookApp):
|
|||||||
self._clear_cookie_cache,
|
self._clear_cookie_cache,
|
||||||
self.cookie_cache_lifetime * 1e3,
|
self.cookie_cache_lifetime * 1e3,
|
||||||
).start()
|
).start()
|
||||||
super().start()
|
super(SingleUserNotebookApp, self).start()
|
||||||
|
|
||||||
def init_webapp(self):
|
def init_webapp(self):
|
||||||
# load the hub related settings into the tornado settings dict
|
# load the hub related settings into the tornado settings dict
|
||||||
|
Reference in New Issue
Block a user