~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml_serializer.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        from xml.etree.cElementTree import (ElementTree, SubElement, Element,
32
32
            XMLTreeBuilder, fromstring, tostring)
33
33
        import xml.etree as elementtree
 
34
        # Also import ElementTree module so monkey-patching below always works
 
35
        import xml.etree.ElementTree
34
36
    except ImportError:
35
37
        from cElementTree import (ElementTree, SubElement, Element,
36
38
                                  XMLTreeBuilder, fromstring, tostring)