Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Sources inherit from MutableSequence #36

Merged
merged 1 commit into from
Mar 31, 2022
Merged

Make Sources inherit from MutableSequence #36

merged 1 commit into from
Mar 31, 2022

Conversation

nforro
Copy link
Member

@nforro nforro commented Mar 30, 2022

This allows to actually iterate through sources without having to implement __iter__().
Also, other methods like append() or clear() are already implemented in MutableSequence.
__contains__(), remove() and count() remain reimplemented as they allow to perform the actions by location.

This allows to actually iterate through sources without having to
implement __iter__(). Also, other methods like append() or clear()
are already implemented in MutableSequence. __contains__(), remove()
and count() remain reimplemented as they allow to perform the actions
by location.

Signed-off-by: Nikola Forró <nforro@redhat.com>
@nforro nforro requested a review from FrNecas March 30, 2022 13:44
@nforro nforro mentioned this pull request Mar 30, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

@nforro nforro added the mergeit Zuul, merge it! label Mar 31, 2022
@nforro nforro merged commit 75bfd49 into main Mar 31, 2022
@delete-merged-branch delete-merged-branch bot deleted the nforro-sources branch March 31, 2022 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Zuul, merge it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants