🐛 ssh_known_dupes: fix for python3 compat
This commit is contained in:
parent
c0008fc038
commit
5278d799b4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue