~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2006-01-26 14:03:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1551.
  • Revision ID: john@arbash-meinel.com-20060126140355-a51a4b80247405f5
Giving nicer warning when there is a leftover xml.pyc file.

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