Show More
@@ -934,6 +934,7 b' python-profiler package from non-free.""")' | |||||
934 | deb._exec_filename = filename |
|
934 | deb._exec_filename = filename | |
935 | while True: |
|
935 | while True: | |
936 | try: |
|
936 | try: | |
|
937 | trace = sys.gettrace() | |||
937 | deb.run(code, code_ns) |
|
938 | deb.run(code, code_ns) | |
938 | except Restart: |
|
939 | except Restart: | |
939 | print("Restarting") |
|
940 | print("Restarting") | |
@@ -943,6 +944,8 b' python-profiler package from non-free.""")' | |||||
943 | continue |
|
944 | continue | |
944 | else: |
|
945 | else: | |
945 | break |
|
946 | break | |
|
947 | finally: | |||
|
948 | sys.settrace(trace) | |||
946 |
|
949 | |||
947 |
|
950 | |||
948 | except: |
|
951 | except: |
General Comments 0
You need to be logged in to leave comments.
Login now