changeset 733:43147cbc9ea3 trunk

Update to r855 for Python 2.3 support. Fixes #221 (hopefully).
author athomas
date Wed, 04 Jun 2008 05:01:16 +0000
parents 8825ac5014b1
children ea2566b2f226
files genshi/template/eval.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/genshi/template/eval.py
+++ b/genshi/template/eval.py
@@ -35,7 +35,7 @@
 
 # Check for a Python 2.4 bug in the eval loop
 try:
-    class _FakeMapping(object):
+    class _FakeMapping(dict):
         __getitem__ = __setitem__ = lambda *a: None
     exec 'from sys import *' in {}, _FakeMapping()
 except SystemError:
@@ -53,7 +53,7 @@
         members = module.__all__
     else:
         members = [x for x in module.__dict__ if not x.startswith('_')]
-    mapping.update((name, getattr(module, name)) for name in members)
+    mapping.update([(name, getattr(module, name)) for name in members])
 
 
 class Code(object):
Copyright (C) 2012-2017 Edgewall Software