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

Python 3.10 bugfixes #20

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aiocometd/_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"Coverage": "https://coveralls.io/github/robertmrk/aiocometd",
"Docs": "http://aiocometd.readthedocs.io/"
}
VERSION = "0.4.5"
VERSION = "0.4.6"
AUTHOR = "Róbert Márki"
AUTHOR_EMAIL = "[email protected]"
3 changes: 1 addition & 2 deletions aiocometd/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,7 @@ async def _get_message(self, connection_timeout: Union[int, float]) \
try:
done, pending = await asyncio.wait(
tasks,
return_when=asyncio.FIRST_COMPLETED,
loop=self._loop)
return_when=asyncio.FIRST_COMPLETED)

# cancel all pending tasks
for task in pending:
Expand Down
2 changes: 1 addition & 1 deletion aiocometd/transports/long_polling.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, **kwargs: Any) -> None:
super().__init__(**kwargs)

#: semaphore to limit the number of concurrent HTTP connections to 2
self._http_semaphore = asyncio.Semaphore(2, loop=self._loop)
self._http_semaphore = asyncio.Semaphore(2)

async def _send_final_payload(self, payload: Payload, *,
headers: Headers) -> JsonObject:
Expand Down