Be more pythonic.

This commit is contained in:
Olle Lundberg 2012-10-16 16:54:44 +02:00
parent 7ce9875ed7
commit 04cc4d5510
1 changed files with 1 additions and 2 deletions

View File

@ -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)