summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/mixins.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-02-21 11:25:52 (GMT)
committerGitHub <noreply@github.com>2022-02-21 11:25:52 (GMT)
commit195a46d6ffd4cec6c5fb69c5890f8b1758ac91ca (patch)
tree674e5028c65e8dd3b63866774e32405914e3e573 /Lib/asyncio/mixins.py
parentbe095f6c32188bba02079d086ac8639ea37cec3c (diff)
downloadcpython-195a46d6ffd4cec6c5fb69c5890f8b1758ac91ca.zip
cpython-195a46d6ffd4cec6c5fb69c5890f8b1758ac91ca.tar.gz
cpython-195a46d6ffd4cec6c5fb69c5890f8b1758ac91ca.tar.bz2
bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431)
Diffstat (limited to 'Lib/asyncio/mixins.py')
-rw-r--r--Lib/asyncio/mixins.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/asyncio/mixins.py b/Lib/asyncio/mixins.py
index 650df05..c6bf973 100644
--- a/Lib/asyncio/mixins.py
+++ b/Lib/asyncio/mixins.py
@@ -5,20 +5,10 @@ from . import events
_global_lock = threading.Lock()
-# Used as a sentinel for loop parameter
-_marker = object()
-
class _LoopBoundMixin:
_loop = None
- def __init__(self, *, loop=_marker):
- if loop is not _marker:
- raise TypeError(
- f'As of 3.10, the *loop* parameter was removed from '
- f'{type(self).__name__}() since it is no longer necessary'
- )
-
def _get_loop(self):
loop = events._get_running_loop()