summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOlle Lundberg <geek@nerd.sh>2012-10-16 16:54:44 +0200
committerOlle Lundberg <geek@nerd.sh>2012-10-16 16:54:44 +0200
commit04cc4d55102c111d3e054ef8d83a0a62c34de561 (patch)
tree4ab29afabec8d7dd59a0ed328679aa3ebaa16fc0
parent7ce9875ed7d3e3738ed775ffda4ded1ce12d35f2 (diff)
Be more pythonic.
-rw-r--r--paramiko/config.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/paramiko/config.py b/paramiko/config.py
index 832f42ef..bd1c2f65 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)