~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Robert Collins
  • Date: 2006-01-25 01:43:34 UTC
  • mto: (1534.1.15 integration)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: robertc@robertcollins.net-20060125014334-8dd9ed73c26c5956
Implement final review suggestions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
import bzrlib
34
34
from bzrlib.errors import (BzrError,
35
 
                           BzrBadParameter,
 
35
                           BzrBadParameterNotUnicode,
36
36
                           NoSuchFile,
37
37
                           PathNotChild,
38
38
                           )
603
603
    try:
604
604
        return unicode_or_utf8_string.decode('utf8')
605
605
    except UnicodeDecodeError:
606
 
        raise BzrBadParameter(unicode_or_utf8_string)
 
606
        raise BzrBadParameterNotUnicode(unicode_or_utf8_string)
607
607
 
608
608
 
609
609
def terminal_width():