| 215 | |
| 216 | |
| 217 | class FrozenDict(dict): |
| 218 | def __setitem__(self, *args, **kwargs): |
| 219 | raise Exception('Tried to mutate a frozen dict') |
| 220 | |
| 221 | def update(self, *args, **kwargs): |
| 222 | raise Exception('Tried to mutate a frozen dict') |
| 223 | |
| 224 | |
| 225 | def Freeze(obj): |