diff options
| author | John Turner <jturner.usa@gmail.com> | 2024-02-22 15:50:40 -0500 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2024-03-07 18:49:06 +0000 |
| commit | 3a53501625e73483a86f2ee00696047a20682745 (patch) | |
| tree | 73dd46cc960bea65897dac7862ab3fa85d0d8d7a /bin/eread | |
| parent | 34a96faca419b81be2c88655daec4a24056fd926 (diff) | |
| download | gentoolkit-3a53501625e73483a86f2ee00696047a20682745.tar.gz | |
dependencies.py: rewrite graph_reverse_depends to pass tests
The graph_reverse_depends method was not able to pass the unit tests
introduced in the previous commits. It has been rewritten to pass them.
This also has adding types to the method, and yields the results as an
iterator rather than collecting them into a list in one shot.
The printer callback parameter has been removed. This callback most
likely existed so that results would be shown to the user as soon as
they were available instead of delaying printing until the method
completed, which could take seconds or minutes depending on the
parameters. By making this method an iterator, the same effect is
acheived by having the caller print every item as its yielded
from the method.
Signed-off-by: John Turner <jturner.usa@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'bin/eread')
0 files changed, 0 insertions, 0 deletions
