diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-09-20 14:03:50 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-09-20 14:03:50 +0200 |
commit | 16f8549847cc61715ef5db70cfab8699c8360ae9 (patch) | |
tree | 5bdbecf9129c8c559d025f3b628c6a092b9ba3ca /constructor.py | |
parent | 8d476d15a89171e3fea33e27274f54fe36ca87f2 (diff) | |
download | ruamel.yaml-16f8549847cc61715ef5db70cfab8699c8360ae9.tar.gz |
fix issue #238 incompatibility between __setstate__ and recursive parameters0.15.68
*When this change indeed resolves your problem, please **Close** this issue*.
*(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to 'constructor.py')
-rw-r--r-- | constructor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/constructor.py b/constructor.py index 169155c..6448067 100644 --- a/constructor.py +++ b/constructor.py @@ -915,8 +915,8 @@ class Constructor(SafeConstructor): # !!python/object:module.name { ... state ... } instance = self.make_python_instance(suffix, node, newobj=True) yield instance - deep = hasattr(instance, '__setstate__') - state = self.construct_mapping(node, deep=deep) + # deep = hasattr(instance, '__setstate__') + state = self.construct_mapping(node, deep=False) self.set_python_instance_state(instance, state) def construct_python_object_apply(self, suffix, node, newobj=False): |