Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35dcf45 commit edbfcbdCopy full SHA for edbfcbd
1 file changed
Lib/bdb.py
@@ -145,8 +145,7 @@ def set_quit(self):
145
self.stopframe = self.botframe
146
self.returnframe = None
147
self.quitting = 1
148
- sys.trace = None
149
- del sys.trace
+ sys.settrace(None)
150
151
# Derived classes and clients can call the following functions
152
# to manipulate breakpoints. These functions return an
@@ -245,15 +244,14 @@ def run(self, cmd):
245
244
246
def runctx(self, cmd, globals, locals):
247
self.reset()
248
- sys.trace = self.trace_dispatch
+ sys.settrace(self.trace_dispatch)
249
try:
250
exec(cmd + '\n', globals, locals)
251
except BdbQuit:
252
pass
253
finally:
254
255
256
257
# XXX What to do if the command finishes normally?
258
259
0 commit comments