mercurial/worker.py
changeset 48946 642e31cb55f0
parent 48912 a0674e916fb6
child 49217 13dfad0f9f7a
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
    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