changeset 493:3f6582a5a4a5 trunk

Fix another bug in the translation filter: translated attributes were getting added instead of replaced.
author cmlenz
date Wed, 30 May 2007 09:27:49 +0000
parents fd10321bb1ba
children 942d73ba938c
files genshi/filters/i18n.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/genshi/filters/i18n.py
+++ b/genshi/filters/i18n.py
@@ -129,7 +129,7 @@
                     yield kind, data, pos
                     continue
 
-                new_attrs = list(attrs)
+                new_attrs = []
                 changed = False
                 for name, value in attrs:
                     newval = value
Copyright (C) 2012-2017 Edgewall Software