Commit 12caa2f1 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix deepcopy bug in Graph class

This fixes Graph.__deepcopy__() by properly iterating through the
properties and actually returning the copied graph.
parent ab95d46f
Pipeline #319 failed with stage
in 146 minutes and 25 seconds
......@@ -1679,9 +1679,10 @@ class Graph(object):
def __deepcopy__(self, memo):
g = self.copy()
for k, prop in [x for x in
if x[1].value_type == "python::object"]:
for k, prop in [x for x in
if x[1].value_type() == "python::object"]:[k] = copy.deepcopy(prop)
return g
def __repr__(self):
# provide more useful information
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment