From 04cc4d55102c111d3e054ef8d83a0a62c34de561 Mon Sep 17 00:00:00 2001 From: Olle Lundberg Date: Tue, 16 Oct 2012 16:54:44 +0200 Subject: [PATCH] Be more pythonic. --- paramiko/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paramiko/config.py b/paramiko/config.py index 832f42e..bd1c2f6 100644 --- a/paramiko/config.py +++ b/paramiko/config.py @@ -120,8 +120,7 @@ class SSHConfig (object): ret = {} for match in matches: - for key in match['config']: - value = match['config'][key] + for key, value in match['config'].iteritems(): if key == 'identityfile': if key in ret: ret['identityfile'].extend(value)