MCPcopy Index your code
hub / github.com/python/cpython / CustomQueueProtocol

Class CustomQueueProtocol

Lib/test/test_logging.py:2397–2403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2395 pass
2396
2397class CustomQueueProtocol:
2398 def __init__(self, maxsize=0):
2399 self.queue = queue.Queue(maxsize)
2400
2401 def __getattr__(self, attribute):
2402 queue = object.__getattribute__(self, 'queue')
2403 return getattr(queue, attribute)
2404
2405class CustomQueueFakeProtocol(CustomQueueProtocol):
2406 # An object implementing the minimial Queue API for

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…