~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml_serializer.py

  • Committer: Parth Malwankar
  • Date: 2010-09-24 12:53:00 UTC
  • mfrom: (5443 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5444.
  • Revision ID: parth.malwankar@gmail.com-20100924125300-70sg2t3q03bcuqpm
merged trunk and moved NEWS entry to correct section

Show diffs side-by-side

added added

removed removed

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