Skip to content

element.py: Fix sources() generator to be a generator.

Tristan Van Berkom requested to merge tristan/fix-sources-generator into master

Minor fix; restore Element.sources() so that it is indeed a generator as it advertizes to be, and not a function which returns a generator.

This is possibly a stylistic change, but might be subtly different in the deep guts of the python implementation, if it is different at all, then yield from in this case should be more correct.

Merge request reports