Giguru Scheuer commited on
Commit
a6e9fec
1 Parent(s): 31bca25

Only unpack one variable in loop

Browse files
Files changed (1) hide show
  1. canard_quretec.py +2 -2
canard_quretec.py CHANGED
@@ -165,6 +165,6 @@ class CanardQuretec(datasets.GeneratorBasedBuilder):
165
  # The `key` is here for legacy reason (tfds) and is not important in itself.
166
  with open(filepath) as f:
167
  data_array = json.load(f)
168
- for id_, item_dict in data_array:
169
  # if self.config.name == "first_domain":
170
- yield id_, item_dict
 
165
  # The `key` is here for legacy reason (tfds) and is not important in itself.
166
  with open(filepath) as f:
167
  data_array = json.load(f)
168
+ for item_dict in data_array:
169
  # if self.config.name == "first_domain":
170
+ yield item_dict