We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b314ba9 commit b3234b5Copy full SHA for b3234b5
repo2docker/app.py
@@ -611,7 +611,7 @@ def start_container(self):
611
else:
612
# no port specified, pick a random one
613
container_port = host_port = str(self._get_free_port())
614
- self.ports = {"%s/tcp" % container_port: host_port}
+ self.ports = {f"{container_port}/tcp": host_port}
615
self.port = host_port
616
# To use the option --NotebookApp.custom_display_url
617
# make sure the base-notebook image is updated:
tests/unit/test_ports.py
@@ -96,7 +96,7 @@ def _cleanup():
96
97
break
98
99
- pytest.fail("Never succeeded in talking to %s" % url)
+ pytest.fail(f"Never succeeded in talking to {url}")
100
assert "Directory listing" in r.text
101
102
0 commit comments