Merge "Simplify ring.builder.RingBuilder.__deepcopy__"

This commit is contained in:
Jenkins 2015-04-24 19:37:21 +00:00 committed by Gerrit Code Review
commit 556445b53d

View File

@ -181,9 +181,7 @@ class RingBuilder(object):
dev.setdefault("region", 1)
def __deepcopy__(self, memo):
the_copy = type(self).from_dict(deepcopy(self.to_dict(), memo))
memo[id(self)] = the_copy
return the_copy
return type(self).from_dict(deepcopy(self.to_dict(), memo))
def to_dict(self):
"""