~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml.py

  • Committer: Martin Pool
  • Date: 2005-09-16 07:00:19 UTC
  • Revision ID: mbp@sourcefrog.net-20050916070019-d783477f1fbf95c9
- use regular python warnings for warning about cElementTree

  logging may not have been initialized when this runs

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    from util.cElementTree import (ElementTree, SubElement, Element,
29
29
                                   XMLTreeBuilder, fromstring, tostring)
30
30
except ImportError:
31
 
    warning('using slower ElementTree; consider installing cElementTree')
 
31
    from warnings import warn
 
32
    warn('using slower ElementTree; consider installing cElementTree')
32
33
    from util.elementtree.ElementTree import (ElementTree, SubElement,
33
34
                                              Element, XMLTreeBuilder,
34
35
                                              fromstring, tostring)