From b4e989a85afcfaf08db3868b453812542ce7ef41 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 26 Aug 2010 20:45:08 +0000 Subject: [PATCH] only support reading xinclude if we are using lxml --- utils/upgrade_map_xml/upgrade_map_xml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/upgrade_map_xml/upgrade_map_xml.py b/utils/upgrade_map_xml/upgrade_map_xml.py index 1cfbd04e1..991c3765c 100755 --- a/utils/upgrade_map_xml/upgrade_map_xml.py +++ b/utils/upgrade_map_xml/upgrade_map_xml.py @@ -87,7 +87,8 @@ if __name__ == "__main__": xml = sys.argv[1] tree = etree.parse(xml) - tree.xinclude() + if hasattr(tree,'xinclude') + tree.xinclude() root = tree.getroot() # rename 'bgcolor' to 'background-color'