Make the pseudocode more accurate.
This commit is contained in:
parent
bede39a536
commit
7327e61411
|
@ -163,8 +163,9 @@ feature looks roughly like the following::
|
|||
# In builtins.
|
||||
def breakpoint(*args, **kws):
|
||||
import sys
|
||||
hook = getattr(sys, 'breakpointhook', None)
|
||||
if hook is None:
|
||||
missing = object()
|
||||
hook = getattr(sys, 'breakpointhook', missing)
|
||||
if hook is missing:
|
||||
raise RuntimeError('lost sys.breakpointhook')
|
||||
return hook(*args, **kws)
|
||||
|
||||
|
|
Loading…
Reference in New Issue