7 Module implementing utilities functions for the debug client. |
7 Module implementing utilities functions for the debug client. |
8 """ |
8 """ |
9 |
9 |
10 import json |
10 import json |
11 import os |
11 import os |
|
12 import sys |
12 import traceback |
13 import traceback |
13 import sys |
14 |
|
15 from collections import namedtuple |
|
16 from inspect import iscode, isframe |
14 |
17 |
15 # |
18 # |
16 # Taken from inspect.py of Python 3.4 |
19 # Taken from inspect.py of Python 3.4 |
17 # |
20 # |
18 |
21 |
19 from collections import namedtuple |
|
20 from inspect import iscode, isframe |
|
21 |
22 |
22 # Create constants for the compiler flags in Include/code.h |
23 # Create constants for the compiler flags in Include/code.h |
23 # We try to get them from dis to avoid duplication, but fall |
24 # We try to get them from dis to avoid duplication, but fall |
24 # back to hardcoding so the dependency is optional |
25 # back to hardcoding so the dependency is optional |
25 try: |
26 try: |