From 5278d799b4bde70d6f55839077019a782905e4e2 Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 19 Mar 2020 16:44:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20ssh=5Fknown=5Fdupes:=20fix=20for?= =?UTF-8?q?=20python3=20compat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ssh_known_dupes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh_known_dupes b/ssh_known_dupes index 0c0f4c7..7602c24 100755 --- a/ssh_known_dupes +++ b/ssh_known_dupes @@ -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)