Skip to content

Commit c09027b

Browse files
committed
[py]: convert service_url to fstrings
1 parent 58c3c5c commit c09027b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/common/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def service_url(self):
5151
"""
5252
Gets the url of the Service
5353
"""
54-
return "http://%s" % utils.join_host_port('localhost', self.port)
54+
return f"http://{utils.join_host_port('localhost', self.port)}"
5555

5656
def command_line_args(self):
5757
raise NotImplementedError("This method needs to be implemented in a sub class")

0 commit comments

Comments
 (0)