Be more pythonic.

This commit is contained in:
Olle Lundberg 2012-10-16 16:54:44 +02:00
parent ac1310c4a1
commit 32424ba109
1 changed files with 1 additions and 2 deletions

View File

@ -171,8 +171,7 @@ class SSHConfig (object):
ret = {} ret = {}
for match in matches: for match in matches:
for key in match['config']: for key, value in match['config'].iteritems():
value = match['config'][key]
if key == 'identityfile': if key == 'identityfile':
if key in ret: if key in ret:
ret['identityfile'].extend(value) ret['identityfile'].extend(value)