equal
deleted
inserted
replaced
66 |
66 |
67 def ismainthread(): |
67 def ismainthread(): |
68 return threading.current_thread() == threading.main_thread() |
68 return threading.current_thread() == threading.main_thread() |
69 |
69 |
70 |
70 |
71 class _blockingreader(object): |
71 class _blockingreader: |
72 def __init__(self, wrapped): |
72 def __init__(self, wrapped): |
73 self._wrapped = wrapped |
73 self._wrapped = wrapped |
74 |
74 |
75 # Do NOT implement readinto() by making it delegate to |
75 # Do NOT implement readinto() by making it delegate to |
76 # _wrapped.readinto(), since that is unbuffered. The unpickler is fine |
76 # _wrapped.readinto(), since that is unbuffered. The unpickler is fine |