391 """ |
391 """ |
392 if reply != "Versions": |
392 if reply != "Versions": |
393 raise ValueError(f"unsupported reply received ({reply})") |
393 raise ValueError(f"unsupported reply received ({reply})") |
394 |
394 |
395 else: |
395 else: |
396 versionText = self.tr("""<h2>Server Version Numbers</h2><table>""") |
396 hostname = params['hostname'] |
|
397 versionText = self.tr( |
|
398 "<h2>{0}Version Numbers</h2><table>" |
|
399 ).format(self.tr("{0} - ").format(hostname) if hostname else "") |
397 |
400 |
398 # Python version |
401 # Python version |
399 versionText += ( |
402 versionText += ( |
400 """<tr><td><b>Python</b></td><td>{0}, {1}</td></tr>""" |
403 """<tr><td><b>Python</b></td><td>{0}, {1}</td></tr>""" |
401 ).format(params["python"], params["py_bitsize"]) |
404 ).format(params["python"], params["py_bitsize"]) |