From c7cecaa48c4c856d794117ae127285781da75672 Mon Sep 17 00:00:00 2001 From: Zsailer Date: Tue, 8 Sep 2020 11:39:45 -0700 Subject: [PATCH] replace urljoin with url_path_join in extensionapp --- jupyter_server/extension/application.py | 3 +-- jupyter_server/extension/handler.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/jupyter_server/extension/application.py b/jupyter_server/extension/application.py index b1002415b3..7848af75d7 100644 --- a/jupyter_server/extension/application.py +++ b/jupyter_server/extension/application.py @@ -1,7 +1,6 @@ import sys import re import logging -from urllib.parse import urljoin from jinja2 import Environment, FileSystemLoader @@ -197,7 +196,7 @@ def _default_static_url_prefix(self): static_url = "static/{name}/".format( name=self.name ) - return urljoin(self.serverapp.base_url, static_url) + return url_path_join(self.serverapp.base_url, static_url) static_paths = List(Unicode(), help="""paths to search for serving static files. diff --git a/jupyter_server/extension/handler.py b/jupyter_server/extension/handler.py index 58ff60c3ed..db615db911 100644 --- a/jupyter_server/extension/handler.py +++ b/jupyter_server/extension/handler.py @@ -1,4 +1,3 @@ -from urllib.parse import urljoin from jupyter_server.base.handlers import FileFindHandler from jinja2.exceptions import TemplateNotFound