Skip to content

Commit

Permalink
fix: copy staggered from standard lib for python 3.12+
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Sep 27, 2024
1 parent aca95c5 commit b1a4c3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/aiohappyeyeballs/staggered.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import sys
from ._staggered import staggered_race

if sys.version_info > (3, 11):
# https://github.com/python/cpython/issues/124639#issuecomment-2378129834
from ._staggered import staggered_race
else:
from asyncio.staggered import staggered_race
# if sys.version_info > (3, 11):
# # https://github.com/python/cpython/issues/124639#issuecomment-2378129834
# from ._staggered import staggered_race
# else:
# from asyncio.staggered import staggered_race

__all__ = ["staggered_race"]

0 comments on commit b1a4c3f

Please sign in to comment.