🐛 ssh_known_dupes: fix for python3 compat

master
neingeist 5 years ago
parent c0008fc038
commit 5278d799b4

@ -18,6 +18,6 @@ with open(os.path.expanduser('~/.ssh/known_hosts')) as f:
(hostname, key, cruft) = m.groups()
hostnames_per_key[key].append(hostname)
for key, hostnames in hostnames_per_key.iteritems():
for key, hostnames in hostnames_per_key.items():
if len(hostnames) > 1:
print(hostnames)

Loading…
Cancel
Save