diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-14 23:11:33 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-12-14 23:15:47 +0200 |
| commit | 74d413161c9e847c8ff8f02737bcb66eb71b742b (patch) | |
| tree | fa003b5130ec3b034812444a671778004660a909 /src-py/model | |
| parent | 292e45dd6590ada4a5155ec4cfe9446610eaf502 (diff) | |
assert ID attr_name not used in Attr_Diff
Diffstat (limited to 'src-py/model')
| -rw-r--r-- | src-py/model/graph.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src-py/model/graph.py b/src-py/model/graph.py index ebe8b31e..efc403d4 100644 --- a/src-py/model/graph.py +++ b/src-py/model/graph.py @@ -46,6 +46,7 @@ class Attr_Diff(dict): def add_node_attr_write(self, n_id, attr_name, attr_val): + assert 'id' != attr_name.lower(), 'Attr_Diff: attempt to write to \'id\' attribute' n_attr_diff = self['__type_node'].get(n_id) if None == n_attr_diff: |
