summaryrefslogtreecommitdiff
path: root/constructor.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2021-08-21 15:35:35 +0200
committerAnthon van der Neut <anthon@mnt.org>2021-08-21 15:35:35 +0200
commit0c05224579a493f0dd06a71c366c5a4843c8de2a (patch)
tree208f38acbee6729509438d7e74e3cfe726f23d90 /constructor.py
parentc39137c24b8a62818e6ca5c682e80bdc52e727c9 (diff)
downloadruamel.yaml-0c05224579a493f0dd06a71c366c5a4843c8de2a.tar.gz
minor fix0.17.13
Diffstat (limited to 'constructor.py')
-rw-r--r--constructor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/constructor.py b/constructor.py
index 1673479..e608db4 100644
--- a/constructor.py
+++ b/constructor.py
@@ -1636,7 +1636,7 @@ class RoundTripConstructor(SafeConstructor):
else:
state = SafeConstructor.construct_mapping(self, node)
if hasattr(data, '__attrs_attrs__'): # issue 394
- cls.__init__(cls, **state)
+ data.__init__(**state)
else:
data.__dict__.update(state)
if node.anchor: