comparison mercurial/worker.py @ 46698:f64806207752 stable

typing: disable a module-attr warning in the worker module's py2 code Differential Revision: https://phab.mercurial-scm.org/D10183
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 11 Mar 2021 21:09:55 -0500
parents a42502e9ae6d
children d4ba4d51f85f
comparison
equal deleted inserted replaced
46697:71443f742886 46698:f64806207752
102 102
103 103
104 else: 104 else:
105 105
106 def ismainthread(): 106 def ismainthread():
107 # pytype: disable=module-attr
107 return isinstance(threading.current_thread(), threading._MainThread) 108 return isinstance(threading.current_thread(), threading._MainThread)
109 # pytype: enable=module-attr
108 110
109 def _blockingreader(wrapped): 111 def _blockingreader(wrapped):
110 return wrapped 112 return wrapped
111 113
112 114