specify types in all str.format() calls (fixes #169)

This commit is contained in:
Micah Lee 2015-05-15 12:26:58 -07:00
parent 8086ed8c64
commit 669750be37
18 changed files with 65 additions and 66 deletions

View file

@ -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()