eric6/DebugClients/Python/DebugBase.py

changeset 7904
0424ebe2d3b1
parent 7903
827d89937c30
child 7923
91e843545d9a
equal deleted inserted replaced
7903:827d89937c30 7904:0424ebe2d3b1
21 import _thread 21 import _thread
22 from DebugUtilities import getargvalues, formatargvalues 22 from DebugUtilities import getargvalues, formatargvalues
23 23
24 gRecursionLimit = 64 24 gRecursionLimit = 64
25 25
26 GENERATOR_AND_COROUTINE_FLAGS = ( 26 try:
27 inspect.CO_GENERATOR | inspect.CO_COROUTINE | inspect.CO_ASYNC_GENERATOR 27 GENERATOR_AND_COROUTINE_FLAGS = (
28 ) 28 inspect.CO_GENERATOR | inspect.CO_COROUTINE |
29 inspect.CO_ASYNC_GENERATOR
30 )
31 except AttributeError:
32 # Python < 3.7
33 GENERATOR_AND_COROUTINE_FLAGS = inspect.CO_GENERATOR
29 34
30 35
31 def printerr(s): 36 def printerr(s):
32 """ 37 """
33 Module function used for debugging the debug client. 38 Module function used for debugging the debug client.

eric ide

mercurial