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

Avoid raising StopIterator in generators #972

Merged
merged 1 commit into from Jan 3, 2019
Merged

Conversation

thedrow
Copy link
Member

@thedrow thedrow commented Dec 31, 2018

According to PEP-479 StopIteration should not be used any more to indicate the termination of a generator.
Starting from Python 3.7 this behaviour is always enforced and a RuntimeError is raised instead.
We now return instead of raising StopIteration.

According to [PEP-479](https://www.python.org/dev/peps/pep-0479/) StopIteration should not be used any more to indicate the termination of a generator.
Starting from Python 3.7 this behaviour is always enforced and a RuntimeError is raised instead.
We now return instead of raising StopIteration.
@codecov
Copy link

codecov bot commented Jan 3, 2019

Codecov Report

Merging #972 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #972   +/-   ##
=======================================
  Coverage   88.57%   88.57%           
=======================================
  Files          63       63           
  Lines        6529     6529           
  Branches      780      780           
=======================================
  Hits         5783     5783           
  Misses        663      663           
  Partials       83       83
Impacted Files Coverage Δ
kombu/asynchronous/hub.py 79.54% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eded864...9ff8083. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Jan 3, 2019

Codecov Report

Merging #972 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #972   +/-   ##
=======================================
  Coverage   88.57%   88.57%           
=======================================
  Files          63       63           
  Lines        6529     6529           
  Branches      780      780           
=======================================
  Hits         5783     5783           
  Misses        663      663           
  Partials       83       83
Impacted Files Coverage Δ
kombu/asynchronous/hub.py 79.54% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eded864...9ff8083. Read the comment docs.

@thedrow thedrow merged commit 3e3886b into master Jan 3, 2019
@thedrow thedrow deleted the thedrow-patch-1 branch January 3, 2019 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants