/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 bzrlib/trace.py

  • Committer: Robert Collins
  • Date: 2010-05-05 00:05:29 UTC
  • mto: This revision was merged to the branch mainline in revision 5206.
  • Revision ID: robertc@robertcollins.net-20100505000529-ltmllyms5watqj5u
Make 'pydoc bzrlib.tests.build_tree_shape' useful.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
 
112
112
 
113
113
def note(*args, **kwargs):
 
114
    """Output a note to the user.
 
115
 
 
116
    Takes the same parameters as logging.info.
 
117
    :return: None
 
118
    """
114
119
    # FIXME note always emits utf-8, regardless of the terminal encoding
115
120
    #
116
121
    # FIXME: clearing the ui and then going through the abstract logging
492
497
    elif not getattr(exc_object, 'internal_error', True):
493
498
        report_user_error(exc_info, err_file)
494
499
        return errors.EXIT_ERROR
495
 
    elif isinstance(exc_object, (OSError, IOError)) or (
496
 
        exc_type.__name__ == "error" and exc_type.__module__ == "pywintypes"):
 
500
    elif isinstance(exc_object, (OSError, IOError)):
497
501
        # Might be nice to catch all of these and show them as something more
498
502
        # specific, but there are too many cases at the moment.
499
503
        report_user_error(exc_info, err_file)