Skip to content

Commit fb22cf6

Browse files
committed
Change to directly import UNBOUND.
1 parent d5060f7 commit fb22cf6

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Lib/concurrent/interpreters/_crossinterp.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ def __repr__(self):
8282
for k, v in _UNBOUND_CONSTANT_TO_FLAG.items()}
8383

8484

85-
def register_unbound(unbound, flag):
86-
_UNBOUND_CONSTANT_TO_FLAG[unbound] = flag
87-
88-
8985
def serialize_unbound(unbound):
9086
op = unbound
9187
try:

Lib/concurrent/interpreters/_queues.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
QueueError, QueueNotFoundError,
1212
)
1313
from ._crossinterp import (
14-
UNBOUND_ERROR, UNBOUND_REMOVE,
14+
UNBOUND, UNBOUND_ERROR, UNBOUND_REMOVE,
1515
)
1616

1717
__all__ = [
@@ -46,10 +46,6 @@ class ItemInterpreterDestroyed(QueueError,
4646
_PICKLED = 1
4747

4848

49-
UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
50-
_crossinterp.register_unbound(UNBOUND, 3)
51-
52-
5349
def _serialize_unbound(unbound):
5450
if unbound is UNBOUND:
5551
unbound = _crossinterp.UNBOUND

0 commit comments

Comments
 (0)