mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-13 13:02:56 +00:00
Fix comments codestyle in python
This commit is contained in:
@@ -24,13 +24,15 @@ if os.environ.get("RESTARTABLE") == "yes":
|
||||
# We always launch a jupyter subcommand from this script
|
||||
command.append("jupyter")
|
||||
|
||||
# Launch the configured subcommand. Note that this should be a single string, so we don't split it
|
||||
# We default to lab
|
||||
# Launch the configured subcommand.
|
||||
# Note that this should be a single string, so we don't split it.
|
||||
# We default to `lab`.
|
||||
jupyter_command = os.environ.get("DOCKER_STACKS_JUPYTER_CMD", "lab")
|
||||
command.append(jupyter_command)
|
||||
|
||||
# Append any optional NOTEBOOK_ARGS we were passed in. This is supposed to be multiple args passed
|
||||
# on to the notebook command, so we split it correctly with shlex
|
||||
# Append any optional NOTEBOOK_ARGS we were passed in.
|
||||
# This is supposed to be multiple args passed on to the notebook command,
|
||||
# so we split it correctly with shlex
|
||||
if "NOTEBOOK_ARGS" in os.environ:
|
||||
command += shlex.split(os.environ["NOTEBOOK_ARGS"])
|
||||
|
||||
|
@@ -65,10 +65,10 @@ def test_unsigned_ssl(
|
||||
environment=["GEN_CERT=yes"],
|
||||
ports={"8888/tcp": host_port},
|
||||
)
|
||||
# NOTE: The requests.Session backing the http_client fixture does not retry
|
||||
# properly while the server is booting up. An SSL handshake error seems to
|
||||
# abort the retry logic. Forcing a long sleep for the moment until I have
|
||||
# time to dig more.
|
||||
# NOTE: The requests.Session backing the http_client fixture
|
||||
# does not retry properly while the server is booting up.
|
||||
# An SSL handshake error seems to abort the retry logic.
|
||||
# Forcing a long sleep for the moment until I have time to dig more.
|
||||
time.sleep(1)
|
||||
resp = http_client.get(f"https://localhost:{host_port}", verify=False)
|
||||
resp.raise_for_status()
|
||||
|
Reference in New Issue
Block a user