summaryrefslogtreecommitdiffstats
path: root/format.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-06-13 20:31:11 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-06-13 20:31:11 +0200
commit835ecc03681383e76b6338240c2ce06ae6ecbcf2 (patch)
tree0f85c3f9b6908c7a49d73128190b05e7597fdaaa /format.py
parent84c51f33d29c6009e817aa53f59ca170658e023a (diff)
downloadclufter-835ecc03681383e76b6338240c2ce06ae6ecbcf2.tar.gz
clufter-835ecc03681383e76b6338240c2ce06ae6ecbcf2.tar.xz
clufter-835ecc03681383e76b6338240c2ce06ae6ecbcf2.zip
xml_utils: make rng_pivot return "starting" definition
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'format.py')
-rw-r--r--format.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/format.py b/format.py
index c36488e..990a1f8 100644
--- a/format.py
+++ b/format.py
@@ -499,7 +499,8 @@ class XML(SimpleFormat):
log.warning("Problem processing RNG file `{0}'".format(s))
continue
if start is not None:
- schema = rng_pivot(deepcopy(schema), start)
+ schema = deepcopy(schema)
+ rng_pivot(schema, start)
try:
schema.assertValid(et)
except etree.DocumentInvalid: