tMerge pull request #2965 from SomberNight/py3_dict_keys1 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 6e5c2980eccd771122fae5c2d5010520ab6b2f3d DIR parent 031b911dce818c4c005663e770b4784234bc5590 HTML Author: ThomasV <thomasv@electrum.org> Date: Tue, 3 Oct 2017 14:01:39 +0200 Merge pull request #2965 from SomberNight/py3_dict_keys1 fix: py3 network_dialog - dict.keys() Diffstat: M gui/qt/network_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/network_dialog.py b/gui/qt/network_dialog.py t@@ -391,7 +391,7 @@ class NetworkChoiceLayout(object): host = self.server_host.text() pp = self.servers.get(host, DEFAULT_PORTS) if p not in pp.keys(): - p = pp.keys()[0] + p = list(pp.keys())[0] port = pp[p] self.server_host.setText(host) self.server_port.setText(port) t@@ -426,7 +426,7 @@ class NetworkChoiceLayout(object): protocol = 's' port = pp.get(protocol) else: - protocol = pp.keys()[0] + protocol = list(pp.keys())[0] port = pp.get(protocol) self.server_host.setText(host) self.server_port.setText(port)