##// END OF EJS Templates
don't blacklist builtin names...
MinRK -
Show More
@@ -173,10 +173,6 b' class Config(dict):'
173 return dict.__getitem__(self, key)
173 return dict.__getitem__(self, key)
174
174
175 def __setitem__(self, key, value):
175 def __setitem__(self, key, value):
176 # Don't allow names in __builtin__ to be modified.
177 if hasattr(builtin_mod, key):
178 raise ConfigError('Config variable names cannot have the same name '
179 'as a Python builtin: %s' % key)
180 if self._is_section_key(key):
176 if self._is_section_key(key):
181 if not isinstance(value, Config):
177 if not isinstance(value, Config):
182 raise ValueError('values whose keys begin with an uppercase '
178 raise ValueError('values whose keys begin with an uppercase '
General Comments 0
You need to be logged in to leave comments. Login now