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

Fix noop for python 3.4 #1847

Merged
merged 2 commits into from
Apr 27, 2017
Merged

Fix noop for python 3.4 #1847

merged 2 commits into from
Apr 27, 2017

Conversation

emlove
Copy link
Contributor

@emlove emlove commented Apr 26, 2017

What do these changes do?

This change switches the noop helper in python 3.4 from returning a tuple to returning an empty coroutine. Python 3.4 supports the coroutine decorator syntax, so I'm not sure why this was done differently to begin with. The current code is causing assertion errors when the coroutine is passed to loop.create_task.

After this change both branches were the same, so the branching is removed.

Are there changes in behavior for the user?

No

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new entry to CHANGES.rst
    • Choose any open position to avoid merge conflicts with other PRs.
    • Add a link to the issue you are fixing (if any) using #issue_number format at the end of changelog message. Use Pull Request number if there are no issues for PR or PR covers the issue only partially.

@fafhrd91
Copy link
Member

could you rebase against master and fix spelling

@emlove
Copy link
Contributor Author

emlove commented Apr 26, 2017

Sure. Can you point out the spelling problem, though?

@fafhrd91
Copy link
Member

you can do "make doc-spelling"

https://travis-ci.org/aio-libs/aiohttp/jobs/226199011

@emlove emlove changed the base branch from 2.0 to master April 27, 2017 01:37
@codecov-io
Copy link

Codecov Report

Merging #1847 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1847   +/-   ##
=======================================
  Coverage   97.19%   97.19%           
=======================================
  Files          37       37           
  Lines        7509     7509           
  Branches     1306     1306           
=======================================
  Hits         7298     7298           
  Misses         89       89           
  Partials      122      122
Impacted Files Coverage Δ
aiohttp/helpers.py 96.79% <100%> (ø) ⬆️

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 0f51eca...f6908f3. Read the comment docs.

@emlove
Copy link
Contributor Author

emlove commented Apr 27, 2017

Done. Thanks for pointing me in the right direction.

@fafhrd91 fafhrd91 merged commit 480cffa into aio-libs:master Apr 27, 2017
@fafhrd91
Copy link
Member

Thanks

@emlove emlove deleted the python-34-noop-fix branch April 28, 2017 14:59
@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants