Merge pull request #347 from friedcell/master

kwargs must be strings, unicode fails with "keywords must be strings"
This commit is contained in:
Vincent Driessen 2014-05-08 13:56:10 +02:00
commit f3058faa36
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ class DictConfigurator(BaseConfigurator):
'address' in config:
config['address'] = self.as_tuple(config['address'])
factory = klass
kwargs = dict([(k, config[k]) for k in config if valid_ident(k)])
kwargs = dict([(str(k), config[k]) for k in config if valid_ident(k)])
try:
result = factory(**kwargs)
except TypeError as te: