mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-12 11:22:14 -04:00
Replace .format with python 3.6 f-strings in onionshare_gui module
This commit is contained in:
parent
b9a7361d9c
commit
3a2cc8bdee
9 changed files with 42 additions and 75 deletions
|
@ -540,9 +540,7 @@ class ServerStatus(QtWidgets.QWidget):
|
|||
Returns the OnionShare URL.
|
||||
"""
|
||||
if self.common.settings.get("public_mode"):
|
||||
url = "http://{0:s}".format(self.app.onion_host)
|
||||
url = f"http://{self.app.onion_host}"
|
||||
else:
|
||||
url = "http://onionshare:{0:s}@{1:s}".format(
|
||||
self.web.password, self.app.onion_host
|
||||
)
|
||||
url = f"http://onionshare:{self.web.password}@{self.app.onion_host}"
|
||||
return url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue