Show More
@@ -104,7 +104,9 b' if pycompat.ispy3:' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now