Mercurial > hg > WSGraph
diff wsgraph/model.py @ 34:16673636dcb6
wow, testing is fun!
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 13 Dec 2012 19:06:00 -0800 |
parents | 943a4b7097af |
children | f17a6577cc0d |
line wrap: on
line diff
--- a/wsgraph/model.py Thu Dec 13 19:00:30 2012 -0800 +++ b/wsgraph/model.py Thu Dec 13 19:06:00 2012 -0800 @@ -99,7 +99,7 @@ else: # getter # TODO: deepcopy - return self._nodes.get(name, None) + return deepcopy(self._nodes.get(name, None)) def nodes(self): return self._nodes.keys() @@ -113,7 +113,7 @@ else: # getter # TODO: deepcopy - return self._edges.get((node1, node2), None) + return deepcopy(self._edges.get((node1, node2), None)) def edges(self): return self._edges.keys()