Skip to content

Commit 3f2ad16

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d9694e2 commit 3f2ad16

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

batchspawner/singleuser.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
import sys
3-
43
from runpy import run_path
54
from shutil import which
65
from urllib.parse import urlparse
@@ -39,9 +38,9 @@ def main(argv=None):
3938
url = urlparse(os.environ.get("JUPYTERHUB_SERVICE_URL", ""))
4039
# Updated URL. We are effectively passing the port arg via env var
4140
if url.hostname:
42-
os.environ[
43-
"JUPYTERHUB_SERVICE_URL"
44-
] = f"{url.scheme}://{url.hostname}:{port}{url.path}"
41+
os.environ["JUPYTERHUB_SERVICE_URL"] = (
42+
f"{url.scheme}://{url.hostname}:{port}{url.path}"
43+
)
4544

4645
cmd_path = which(sys.argv[1])
4746
sys.argv = sys.argv[1:]

0 commit comments

Comments
 (0)