Skip to content

Commit

Permalink
Py3k fix (filter → list(filter))
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranade committed Apr 20, 2017
1 parent 8a89bf8 commit fc177be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instruments/named_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _from_seq(cls, new_values):
return cls(**{
field._name: new_value
for field, new_value in
zip(filter(Field.is_significant, cls._fields.values()), new_values)
zip(list(filter(Field.is_significant, cls._fields.values())), new_values)
})

def pack(self):
Expand Down

0 comments on commit fc177be

Please sign in to comment.