diff genshi/filters/i18n.py @ 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 fb66fb3e4b49
children 5e7604c2d60d
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