File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ cdef os_fspath = os.fspath
116116cdef stat_S_ISSOCK = stat.S_ISSOCK
117117
118118cdef sys_ignore_environment = sys.flags.ignore_environment
119+ cdef sys_dev_mode = sys.flags.dev_mode
119120cdef sys_exc_info = sys.exc_info
120121cdef sys_set_coroutine_wrapper = getattr (sys, ' set_coroutine_wrapper' , None )
121122cdef sys_get_coroutine_wrapper = getattr (sys, ' get_coroutine_wrapper' , None )
Original file line number Diff line number Diff line change @@ -223,8 +223,9 @@ cdef class Loop:
223223 return main_thread_id == PyThread_get_thread_ident()
224224
225225 def __init__ (self ):
226- self .set_debug((not sys_ignore_environment
227- and bool (os_environ.get(' PYTHONASYNCIODEBUG' ))))
226+ self .set_debug(
227+ sys_dev_mode or (not sys_ignore_environment
228+ and bool (os_environ.get(' PYTHONASYNCIODEBUG' ))))
228229
229230 def __dealloc__ (self ):
230231 if self ._running == 1 :
You can’t perform that action at this time.
0 commit comments