Browse Source

Fix another bug.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
59b9817bf6
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      earwigbot/config/node.py

+ 6
- 1
earwigbot/config/node.py View File

@@ -42,10 +42,15 @@ class ConfigNode(object):
self._data[key] = item

def __getattr__(self, key):
if key == "_data":
return super(ConfigNode, self)__getattr__(key)
return self._data[key]

def __setattr__(self, key, item):
self._data[key] = item
if key == "_data":
super(ConfigNode, self)__setattr__(key, item)
else:
self._data[key] = item

def __iter__(self):
for key in self._data:


Loading…
Cancel
Save