/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to brzlib/osutils.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 12:27:30 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521122730-q3leptj0lymfxcox
Fix some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
594
594
    try:
595
595
        codecs.lookup(output_encoding)
596
596
    except LookupError:
597
 
        sys.stderr.write('bzr: warning:'
 
597
        sys.stderr.write('brz: warning:'
598
598
                         ' unknown terminal encoding %s.\n'
599
599
                         '  Using encoding %s instead.\n'
600
600
                         % (output_encoding, get_user_encoding())
1104
1104
    # the warnings framework should by default show this only once
1105
1105
    from brzlib.trace import warning
1106
1106
    warning(
1107
 
        "bzr: warning: some compiled extensions could not be loaded; "
 
1107
        "brz: warning: some compiled extensions could not be loaded; "
1108
1108
        "see <https://answers.launchpad.net/bzr/+faq/703>")
1109
1109
    # we no longer show the specific missing extensions here, because it makes
1110
1110
    # the message too long and scary - see
2054
2054
        user_encoding = codecs.lookup(user_encoding).name
2055
2055
    except LookupError:
2056
2056
        if user_encoding not in ("", "cp0"):
2057
 
            sys.stderr.write('bzr: warning:'
 
2057
            sys.stderr.write('brz: warning:'
2058
2058
                             ' unknown encoding %s.'
2059
2059
                             ' Continuing with ascii encoding.\n'
2060
2060
                             % user_encoding