Commit 37f9c630 authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

override the default next guard

parent a508fb67
......@@ -107,8 +107,10 @@ def guarded_next(iterator, default=_marker):
if default is _marker:
raise
return default
if "next" not in safe_builtins: # BBB
add_builtins(next=guarded_next)
#if "next" not in safe_builtins: # BBB
# override the default next if exists
safe_builtins.update(next=guarded_next)
# add_builtins()
_safe_class_attribute_dict = {}
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