* add print_, exec_ and _reraise helpers for 2-3 compatible code

* consolidate builtins implementation to be compatible with >=2.3

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-08-28 16:25:29 +02:00
parent 91f90d27ee
commit 5e95feaf90
23 changed files with 231 additions and 760 deletions

View File

@@ -102,7 +102,7 @@ class WarningsRecorder:
def pop(self, cls=Warning):
""" pop the first recorded warning, raise exception if not exists."""
for i, w in py.builtin.enumerate(self.list):
for i, w in enumerate(self.list):
if issubclass(w.category, cls):
return self.list.pop(i)
__tracebackhide__ = True