[Zope-Checkins] CVS: Zope2 - ZopeGuards.py:1.5
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Mon, 9 Jul 2001 09:57:23 -0400
Update of /cvs-repository/Zope2/lib/python/AccessControl
In directory serenade:/tmp/cvs-serv8832/lib/python/AccessControl
Modified Files:
ZopeGuards.py
Log Message:
Collector #2379-2381: usage of map() inside PythonScripts
has been broken
--- Updated File ZopeGuards.py in package Zope2 --
--- ZopeGuards.py 2001/06/21 17:20:28 1.4
+++ ZopeGuards.py 2001/07/09 13:57:23 1.5
@@ -178,8 +178,8 @@
def guarded_map(f, *seqs):
safe_seqs = []
- for seqno in len(seqs):
- seq = guarded_getitem(f, seqno)
+ for seqno in range(len(seqs)):
+ seq = guarded_getitem(seqs, seqno)
safe_seqs.append(seq)
return map(f, *safe_seqs)
safe_builtins['map'] = guarded_map