File tree 2 files changed +4
-2
lines changed
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
116
116
cdef stat_S_ISSOCK = stat.S_ISSOCK
117
117
118
118
cdef sys_ignore_environment = sys.flags.ignore_environment
119
+ cdef sys_dev_mode = sys.flags.dev_mode
119
120
cdef sys_exc_info = sys.exc_info
120
121
cdef sys_set_coroutine_wrapper = getattr (sys, ' set_coroutine_wrapper' , None )
121
122
cdef 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:
223
223
return main_thread_id == PyThread_get_thread_ident()
224
224
225
225
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' ))))
228
229
229
230
def __dealloc__ (self ):
230
231
if self ._running == 1 :
You can’t perform that action at this time.
0 commit comments