Commit 249eb6f9 by Tom Christie

Make sure to check for "is not None" so that depth=0 gets assigned properly. Thanks thomasst.

parent b71a2443
...@@ -106,7 +106,8 @@ class Serializer(object): ...@@ -106,7 +106,8 @@ class Serializer(object):
def __init__(self, depth=None, stack=[], **kwargs): def __init__(self, depth=None, stack=[], **kwargs):
self.depth = depth or self.depth if depth is not None:
self.depth = depth
self.stack = stack self.stack = 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