groove-x / trio-util

Utility library for the Python Trio async/await framework
https://trio-util.readthedocs.io/
MIT License
68 stars 6 forks source link

Use trio.lowlevel instead of trio.hazmat to avoid a deprecation warning #5

Closed ntamas closed 4 years ago

ntamas commented 4 years ago

trio.hazmat is deprecated since Trio 0.15.0; this PR tries to import from trio.lowlevel first to avoid the deprecation warning, falling back to trio.hazmat for older versions of Trio.

belm0 commented 4 years ago

thank you

I think it can be merged as-is, but first I'll try manual builds against both Trio versions to confirm since the checks did not run on this fork.

However, to support this robustly going forward, the project CI really needs to run against multiple versions of Trio...

ntamas commented 4 years ago

Are there any plans for a next release that includes this PR? If not, I'll set up a custom warning handler on my side to silence this warning instead.

belm0 commented 4 years ago

Are there any plans for a next release that includes this PR?

I've just released v0.1.1. Thanks again.

ntamas commented 4 years ago

Many thanks for the great support!