~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2006-01-30 11:55:34 UTC
  • mfrom: (1185.62.24 bzr-jam-pending)
  • Revision ID: mbp@sourcefrog.net-20060130115534-d9ca79b5856a08fa
[merge] jam-pending small fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import os
21
21
import errno
22
22
from warnings import warn
23
 
import xml.sax.saxutils
 
23
try:
 
24
    import xml.sax.saxutils
 
25
except ImportError:
 
26
    raise ImportError("We were unable to import 'xml.sax.saxutils',"
 
27
                      " most likely you have an xml.pyc or xml.pyo file"
 
28
                      " lying around in your bzrlib directory."
 
29
                      " Please remove it.")
24
30
from cStringIO import StringIO
25
31
 
26
32