~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-01 01:34:50 UTC
  • mfrom: (4204.2.2 typos_200903)
  • Revision ID: pqm@pqm.ubuntu.com-20090401013450-7a9hdobj3p3f033c
(Matt Nordhoff) Fix a few typos in docstrings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1051
1051
    """Coerce unicode_or_utf8_string into unicode.
1052
1052
 
1053
1053
    If it is unicode, it is returned.
1054
 
    Otherwise it is decoded from utf-8. If a decoding error
1055
 
    occurs, it is wrapped as a If the decoding fails, the exception is wrapped
1056
 
    as a BzrBadParameter exception.
 
1054
    Otherwise it is decoded from utf-8. If decoding fails, the exception is
 
1055
    wrapped in a BzrBadParameterNotUnicode exception.
1057
1056
    """
1058
1057
    if isinstance(unicode_or_utf8_string, unicode):
1059
1058
        return unicode_or_utf8_string