aboutsummaryrefslogtreecommitdiff
path: root/lib3
diff options
context:
space:
mode:
authorFilip Salomonsson <filip.salomonsson@gmail.com>2019-12-07 22:34:23 +0100
committerTina Müller (tinita) <cpan2@tinita.de>2019-12-07 22:34:23 +0100
commit5a0cfab86f6bccd5e5bec5c239ccfb94f8f0fe11 (patch)
tree271f9b9b8102e26afe16c250faf0a421399a7601 /lib3
parenteb459f842f690f809b649726f0a317909a92a29c (diff)
downloadpyyaml-5a0cfab86f6bccd5e5bec5c239ccfb94f8f0fe11.tar.gz
Fix handling of __slots__ (#161)
Diffstat (limited to 'lib3')
-rw-r--r--lib3/yaml/constructor.py2
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: