Skip to content

Commit cb3a93b

Browse files
committed
Fixed some transformers
1 parent f94b7c9 commit cb3a93b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javaobj/transformers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def load_from_instance(self, instance, indent=0):
3232
# Lists have their content in there annotations
3333
for cd, annotations in instance.annotations.items():
3434
if cd.name in self.HANDLED_CLASSES:
35-
self.extend(ann.data for ann in annotations[1:])
35+
self.extend(ann for ann in annotations[1:])
3636
return True
3737

3838
return False
@@ -176,7 +176,7 @@ def load_from_instance(self, instance, indent=0):
176176
# Lists have their content in there annotations
177177
for cd, annotations in instance.annotations.items():
178178
if cd.name in self.HANDLED_CLASSES:
179-
self.update(x.data for x in annotations[1:])
179+
self.update(x for x in annotations[1:])
180180
return True
181181

182182
return False
@@ -198,7 +198,7 @@ def load_from_instance(self, instance, indent=0):
198198
for cd, annotations in instance.annotations.items():
199199
if cd.name == self.HANDLED_CLASSES:
200200
# Annotation[1] == size of the set
201-
self.update(x.data for x in annotations[2:])
201+
self.update(x for x in annotations[2:])
202202
return True
203203

204204
return False

0 commit comments

Comments
 (0)