Commit 0e2737d0 authored by Ivan Tyagov's avatar Ivan Tyagov

patches/Restricted: allow iterating a generator

parent f6c62640
......@@ -12,6 +12,7 @@
##############################################################################
import sys
import types
from RestrictedPython.RestrictionMutator import RestrictionMutator
......@@ -141,6 +142,8 @@ ContainerAssertions[set] = _check_access_wrapper(set, _set_white_dict)
ContainerAssertions[frozenset] = 1
ContainerAssertions[types.GeneratorType] = 1
from collections import OrderedDict
ModuleSecurityInfo('collections').declarePublic('OrderedDict')
......
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