summaryrefslogtreecommitdiffstats
path: root/filter.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-10-15 19:21:27 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-10-21 16:14:01 +0200
commit58f33e8dc222ab1f87612e64b4fe496743377e6f (patch)
treee283c80b7a4cab474d97c57bca1ce57270dd3167 /filter.py
parenta00c570fea66f662a69eaac62f714908bb4d2821 (diff)
downloadclufter-58f33e8dc222ab1f87612e64b4fe496743377e6f.tar.gz
clufter-58f33e8dc222ab1f87612e64b4fe496743377e6f.tar.xz
clufter-58f33e8dc222ab1f87612e64b4fe496743377e6f.zip
filter (XSLT): avoid using out-of-scope variable
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'filter.py')
-rw-r--r--filter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter.py b/filter.py
index 9d4f4bf..b92db55 100644
--- a/filter.py
+++ b/filter.py
@@ -407,6 +407,7 @@ class XMLFilter(Filter, MetaPlugin):
break
parent_pos = element_juggler.grab(elem)
res_snippet = etree.tostring(elem, pretty_print=True)
+ force = False
while True:
try:
elems, force = cls._try_edit(res_snippet.strip(),