Hisernberg opened a new pull request, #2218:
URL: https://github.com/apache/libcloud/pull/2218

   `list_resources_async` built `_list_async` via `exec()` using 
`@asyncio.coroutine` and `yield from` — **both removed in Python 3.11** — so 
any call raises:
   
   ```
   AttributeError: module 'asyncio' has no attribute 'coroutine'
   ```
   
   (verified by running the same exec snippet on 3.12). The code comment 
already says the exec existed only to avoid a Python 2 `SyntaxError` from 
`yield from`, and Python 2 support is long gone.
   
   Replaced with a plain `async def _list_async()` + `await`. Semantics 
preserved: one executor job per project, results concatenated in project order 
(same as before).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to