[Update] 修改config.py

pull/2357/head
ibuler 2019-01-17 20:32:10 +08:00
parent 0f32e78891
commit d664018bd7
1 changed files with 4 additions and 1 deletions

View File

@ -200,7 +200,10 @@ class Config(dict):
return False
e.strerror = 'Unable to load configuration file (%s)' % e.strerror
raise
if obj:
return self.from_mapping(obj)
else:
return False
def from_mapping(self, *mapping, **kwargs):
"""Updates the config like :meth:`update` ignoring items with non-upper