summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOlle Lundberg <geek@nerd.sh>2012-10-16 16:54:44 +0200
committerOlle Lundberg <geek@nerd.sh>2013-02-28 12:11:41 +0100
commit32424ba109f2c9a3843b69c6768e04616fceb5fd (patch)
treeb4bb8901aedd7ad4c07ce892d1d62bfd9e5ef8a6
parentac1310c4a171587ae8fd15268a1981eaf139be57 (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 e9c1aaff..91b691ac 100644
--- a/paramiko/config.py
+++ b/paramiko/config.py
@@ -171,8 +171,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)