Commit 943bc073 by Michael Barrett
parent 0fc5a49a
......@@ -182,7 +182,7 @@ class Serializer(object):
else:
depth = self.depth - 1
if any([obj is elem for elem in self.stack]):
if obj in self.stack:
return self.serialize_recursion(obj)
else:
stack = self.stack[:]
......
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