diff --git a/kadmos/cmdows/cmdows.py b/kadmos/cmdows/cmdows.py index 4875689bb8d331d1494e0d9f85073c31e5c81bd2..663265ac6f266e3d8976e9225d2c76adc00bdfe2 100644 --- a/kadmos/cmdows/cmdows.py +++ b/kadmos/cmdows/cmdows.py @@ -18,6 +18,7 @@ parser = etree.XMLParser(remove_blank_text=True) logger = logging.getLogger(__name__) + class CMDOWS(object): """Class for with various methods for checking and manipulating CMDOWS files""" diff --git a/kadmos/utilities/xmls.py b/kadmos/utilities/xmls.py index 74a86032dac6a82bdc63b84de757832c3c3675fc..2d8761c69e40ddde4ceaaa66e5b63c487c958bcd 100644 --- a/kadmos/utilities/xmls.py +++ b/kadmos/utilities/xmls.py @@ -26,6 +26,7 @@ pttrn_attr_name = r'([:A-Z_a-z][0-9:A-Z_a-z]*?)' re_atr = re.compile(r'\[@' + pttrn_attr_name + "=['\"]" + pttrn_attr_val + "['\"]\]") re_ind = re.compile(r'\[([0-9]+?)\]') + def recursively_stringify(tree): """ Utility function to recursively stringify a ElementTree object (for file comparison).