Show More
@@ -269,7 +269,10 b' class Config(dict):' | |||||
269 | try: |
|
269 | try: | |
270 | return dict.__getitem__(self, key) |
|
270 | return dict.__getitem__(self, key) | |
271 | except KeyError: |
|
271 | except KeyError: | |
272 | # undefined |
|
272 | if key.startswith('__'): | |
|
273 | # don't create LazyConfig on special method requests | |||
|
274 | raise | |||
|
275 | # undefined, create lazy value, used for container methods | |||
273 | v = LazyConfigValue() |
|
276 | v = LazyConfigValue() | |
274 | dict.__setitem__(self, key, v) |
|
277 | dict.__setitem__(self, key, v) | |
275 | return v |
|
278 | return v |
General Comments 0
You need to be logged in to leave comments.
Login now