Mercurial > hg > configuration
comparison configuration/configuration.py @ 103:982a775bf3d2
call the proper method
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 01 May 2012 10:46:26 -0700 |
parents | c530f6265deb |
children | 9dd0ebcdbc62 |
comparison
equal
deleted
inserted
replaced
102:c530f6265deb | 103:982a775bf3d2 |
---|---|
328 ### methods for adding configuration | 328 ### methods for adding configuration |
329 | 329 |
330 def default_config(self): | 330 def default_config(self): |
331 """configuration defaults""" | 331 """configuration defaults""" |
332 defaults = {} | 332 defaults = {} |
333 for key, value in self.options.items(): | 333 for key, value in self.items(): |
334 if 'default' in value: | 334 if 'default' in value: |
335 defaults[key] = value['default'] | 335 defaults[key] = value['default'] |
336 return copy.deepcopy(defaults) | 336 return copy.deepcopy(defaults) |
337 | 337 |
338 def __call__(self, *args): | 338 def __call__(self, *args): |