~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Use simple xml unescaping to find involved ids, rather than importing xml.sax

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import sys
24
24
from unittest import TestSuite
25
25
from warnings import warn
26
 
try:
27
 
    import xml.sax.saxutils
28
 
except ImportError:
29
 
    raise ImportError("We were unable to import 'xml.sax.saxutils',"
30
 
                      " most likely you have an xml.pyc or xml.pyo file"
31
 
                      " lying around in your bzrlib directory."
32
 
                      " Please remove it.")
33
 
 
34
26
 
35
27
import bzrlib
36
28
import bzrlib.bzrdir as bzrdir