Skip to content

Commit

Permalink
Python 2.6 support for dict comprehensions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwilcox committed Apr 6, 2016
1 parent 43faeb6 commit 4fde604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/repo.py
Expand Up @@ -140,7 +140,7 @@ def __lt__(self, other):
raise TypeError('Migrations can be compared only with other migrations')

def get_config_dict(self):
return { k: dict(self.conf.items(k)) for k in self.conf.sections() }
return dict((k, dict(self.conf.items(k))) for k in self.conf.sections())

def get_env(self):
return [{'{}_{}'.format(s.upper(), k.upper()) : v
Expand Down

0 comments on commit 4fde604

Please sign in to comment.