-
Notifications
You must be signed in to change notification settings - Fork 257
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
Replace yield from with await... #283
Conversation
# allow consistent errors | ||
self._cursor = None | ||
self._weak = None | ||
|
||
def __iter__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this stopped working... not too sure why
Codecov Report
@@ Coverage Diff @@
## master #283 +/- ##
==========================================
- Coverage 92.93% 92.12% -0.81%
==========================================
Files 9 9
Lines 1161 1118 -43
Branches 173 158 -15
==========================================
- Hits 1079 1030 -49
- Misses 53 61 +8
+ Partials 29 27 -2
Continue to review full report at Codecov.
|
Can you please split this PR in 2 parts: just port tests, without library change and subsequent PR with library change? Should be easy to do, since you have one commit per file. I can help you with splitting. Reason for 2 PR, I just want to be extra caution that move to |
Other question, is what minimum version of python3.5 we should support? |
Sure makes much more sense. Any recommendations for splitting the PR, as normally I resort to mashing git commands until it looks ok 😄. As for Python3.5 versions, I don't know enough about the differences between patch versions, do you know of anything that we should be cautious of? Otherwise, 3.5.2 is on Ubuntu, so assuming that has a fair market share, that's not a bad minimum. |
I was thinking about 3.5.3, since older versions has annoying bug with with |
LOL yeah that is an annoying bug. Sure 3.5.3 is fine by me, im on 3.6 :D |
cherry picked tests locally to make sure all set |
thanks! |
#281 Point 2 Replace yield from with await.
Well this resulted in a nastier diff than I expected :D.
Have replaced the majority of the
yield from
withawait
and@asyncio.coroutine
withasync
This is more a placeholder for when you want to purge the yield from. Its not 100% finished but if you fancy reading through it, by all means :)