Repository navigation
fix: Make regen less greedy - #6542
Closed
maybe-sybr wants to merge 1 commit into
Closed
maybe-sybr wants to merge 1 commit into
maybe-sybr wants to merge 1 commit into
Conversation
Fixes #4298 Co-authored-by: Chad Dombrova <[email protected]>
Contributor
Author
|
I've pulled and uplifted the tests added for |
Contributor
Author
Contributor
Author
|
Huh, where did Travis go in the checks? @thedrow any ideas? |
Contributor
|
Travis no longer works since we're out of credit. |
thedrow
reviewed
Dec 13, 2020
|
|
||
| def __iter__(self): | ||
| return chain(self.__consumed, self.__it) | ||
| for x in self.__consumed: |
Contributor
Author
There was a problem hiding this comment.
Yep, I'll change this and have a more critical read through for other 2.7isms which could be removed from this diff.
|
This pull request fixes 1 alert when merging 9f9c899 into 8bceb44 - view on LGTM.com fixed alerts:
|
auvipy
reviewed
Dec 14, 2020
| else: | ||
| return True | ||
|
|
||
| # Python3 |
Contributor
Author
There was a problem hiding this comment.
I think not, we should just rename the __nonzero__() definition above to __bool__() now that we don't need to worry about 2.7. Good pick up.
Contributor
Author
|
Closing in favour of #6589 which landed earlier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This change is pulled from #3043 (and was also included in modified form in #4459 and #6112). It is the body of change to the
functional.regenutil which is sometimes greedy and also sometimes lost items per the issue reported in #4298.This change fixes #4298 and we'll need to revisit the diffs from the other tagged PRs if we intend to address #3021.