Commit 3b0af044 authored by Aurel's avatar Aurel Committed by Jérome Perrin

override the default next guard

parent cf39ab4a
...@@ -107,8 +107,10 @@ def guarded_next(iterator, default=_marker): ...@@ -107,8 +107,10 @@ def guarded_next(iterator, default=_marker):
if default is _marker: if default is _marker:
raise raise
return default return default
if "next" not in safe_builtins: # BBB #if "next" not in safe_builtins: # BBB
add_builtins(next=guarded_next) # override the default next if exists
safe_builtins.update(next=guarded_next)
# add_builtins()
_safe_class_attribute_dict = {} _safe_class_attribute_dict = {}
import inspect import inspect
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment