changeset 493:abe6e4ab7ecf

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 460b1f0db935
children 8a90e761d5ff
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