Skip to content

Commit c7cecaa

Browse files
committed
replace urljoin with url_path_join in extensionapp
1 parent 6774970 commit c7cecaa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

jupyter_server/extension/application.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import sys
22
import re
33
import logging
4-
from urllib.parse import urljoin
54

65
from jinja2 import Environment, FileSystemLoader
76

@@ -197,7 +196,7 @@ def _default_static_url_prefix(self):
197196
static_url = "static/{name}/".format(
198197
name=self.name
199198
)
200-
return urljoin(self.serverapp.base_url, static_url)
199+
return url_path_join(self.serverapp.base_url, static_url)
201200

202201
static_paths = List(Unicode(),
203202
help="""paths to search for serving static files.

jupyter_server/extension/handler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from urllib.parse import urljoin
21
from jupyter_server.base.handlers import FileFindHandler
32
from jinja2.exceptions import TemplateNotFound
43

0 commit comments

Comments
 (0)