mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-13 16:45:52 -04:00
specify types in all str.format() calls (fixes #169)
This commit is contained in:
parent
8086ed8c64
commit
669750be37
18 changed files with 65 additions and 66 deletions
|
@ -84,7 +84,7 @@ class ServerStatus(QtGui.QVBoxLayout):
|
|||
|
||||
# set the URL fields
|
||||
if self.status == self.STATUS_STARTED:
|
||||
self.url_label.setText('http://{0}/ {1}'.format(self.app.onion_host, self.web.slug))
|
||||
self.url_label.setText('http://{0:s}/ {1:s}'.format(self.app.onion_host, self.web.slug))
|
||||
self.url_label.show()
|
||||
self.copy_url_button.show()
|
||||
else:
|
||||
|
@ -132,7 +132,7 @@ class ServerStatus(QtGui.QVBoxLayout):
|
|||
self.update()
|
||||
|
||||
def copy_url(self):
|
||||
url = 'http://{0}/{1}'.format(self.app.onion_host, self.web.slug)
|
||||
url = 'http://{0:s}/{1:s}'.format(self.app.onion_host, self.web.slug)
|
||||
|
||||
if platform.system() == 'Windows':
|
||||
# Qt's QClipboard isn't working in Windows
|
||||
|
@ -152,4 +152,3 @@ class ServerStatus(QtGui.QVBoxLayout):
|
|||
clipboard.setText(url)
|
||||
|
||||
self.url_copied.emit()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue