mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 02:35:20 +00:00
fix: py3 network_dialog - dict.keys() returns dict_keys(list) instead of list
This commit is contained in:
parent
031b911dce
commit
6353f1a8f0
1 changed files with 2 additions and 2 deletions
|
@ -391,7 +391,7 @@ class NetworkChoiceLayout(object):
|
||||||
host = self.server_host.text()
|
host = self.server_host.text()
|
||||||
pp = self.servers.get(host, DEFAULT_PORTS)
|
pp = self.servers.get(host, DEFAULT_PORTS)
|
||||||
if p not in pp.keys():
|
if p not in pp.keys():
|
||||||
p = pp.keys()[0]
|
p = list(pp.keys())[0]
|
||||||
port = pp[p]
|
port = pp[p]
|
||||||
self.server_host.setText(host)
|
self.server_host.setText(host)
|
||||||
self.server_port.setText(port)
|
self.server_port.setText(port)
|
||||||
|
@ -426,7 +426,7 @@ class NetworkChoiceLayout(object):
|
||||||
protocol = 's'
|
protocol = 's'
|
||||||
port = pp.get(protocol)
|
port = pp.get(protocol)
|
||||||
else:
|
else:
|
||||||
protocol = pp.keys()[0]
|
protocol = list(pp.keys())[0]
|
||||||
port = pp.get(protocol)
|
port = pp.get(protocol)
|
||||||
self.server_host.setText(host)
|
self.server_host.setText(host)
|
||||||
self.server_port.setText(port)
|
self.server_port.setText(port)
|
||||||
|
|
Loading…
Add table
Reference in a new issue