diff options
author | Filip Salomonsson <filip.salomonsson@gmail.com> | 2019-12-07 22:34:23 +0100 |
---|---|---|
committer | Tina Müller (tinita) <cpan2@tinita.de> | 2019-12-07 22:34:23 +0100 |
commit | 5a0cfab86f6bccd5e5bec5c239ccfb94f8f0fe11 (patch) | |
tree | 271f9b9b8102e26afe16c250faf0a421399a7601 /lib3 | |
parent | eb459f842f690f809b649726f0a317909a92a29c (diff) | |
download | pyyaml-5a0cfab86f6bccd5e5bec5c239ccfb94f8f0fe11.tar.gz |
Fix handling of __slots__ (#161)
Diffstat (limited to 'lib3')
-rw-r--r-- | lib3/yaml/constructor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib3/yaml/constructor.py b/lib3/yaml/constructor.py index f8d71a1..31e9318 100644 --- a/lib3/yaml/constructor.py +++ b/lib3/yaml/constructor.py @@ -585,7 +585,7 @@ class FullConstructor(SafeConstructor): elif state: slotstate.update(state) for key, value in slotstate.items(): - setattr(object, key, value) + setattr(instance, key, value) def construct_python_object(self, suffix, node): # Format: |