Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

needs update for python3.11: module 'asyncio' has no attribute 'coroutine' #18

Open
tillea opened this issue Dec 22, 2022 · 1 comment

Comments

@tillea
Copy link

tillea commented Dec 22, 2022

Hi,
as reported in the Debian bug tracking system ratelimiter does not work with python3.11:

Python 3.11.1 (main, Dec  7 2022, 08:49:13) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ratelimiter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/andreas/debian-maintain/salsa/python-team/packages/python-ratelimiter/ratelimiter.py", line 36, in <module>
    class RateLimiter(object):
  File "/home/andreas/debian-maintain/salsa/python-team/packages/python-ratelimiter/ratelimiter.py", line 127, in RateLimiter    
    __aexit__ = asyncio.coroutine(__exit__)
                ^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?

Kind regards, Andreas.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants