Commit 1bc23223 authored by Evan Simpson's avatar Evan Simpson

Exposed Python 2.3 builtins 'sum', 'dict', and 'enumerate' to guarded code.

parent 1115bd0d
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
from __future__ import nested_scopes from __future__ import nested_scopes
__version__='$Revision: 1.12 $'[11:-2] __version__='$Revision: 1.13 $'[11:-2]
import exceptions import exceptions
import new import new
...@@ -22,7 +22,8 @@ for name in ('None', 'abs', 'chr', 'divmod', 'float', 'hash', 'hex', 'int', ...@@ -22,7 +22,8 @@ for name in ('None', 'abs', 'chr', 'divmod', 'float', 'hash', 'hex', 'int',
'len', 'max', 'min', 'oct', 'ord', 'round', 'str', 'pow', 'len', 'max', 'min', 'oct', 'ord', 'round', 'str', 'pow',
'apply', 'callable', 'cmp', 'complex', 'isinstance', 'apply', 'callable', 'cmp', 'complex', 'isinstance',
'issubclass', 'long', 'repr', 'range', 'list', 'tuple', 'issubclass', 'long', 'repr', 'range', 'list', 'tuple',
'unichr', 'unicode', 'True', 'False', 'bool',): 'unichr', 'unicode', 'True', 'False', 'bool',
'dict', 'sum', 'enumerate',):
safe_builtins[name] = __builtins__[name] safe_builtins[name] = __builtins__[name]
for name in dir(exceptions): for name in dir(exceptions):
......
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