~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Jelmer Vernooij
  • Date: 2011-01-13 00:14:31 UTC
  • mto: (5582.10.11 weave-fmt-plugin)
  • mto: This revision was merged to the branch mainline in revision 5607.
  • Revision ID: jelmer@samba.org-20110113001431-gql5gc1orrmjjbyv
More lazy loading (of urlutils and ui).

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
    # FIXME: clearing the ui and then going through the abstract logging
124
124
    # framework is whack; we should probably have a logging Handler that
125
125
    # deals with terminal output if needed.
126
 
    import bzrlib.ui
127
 
    bzrlib.ui.ui_factory.clear_term()
 
126
    ui.ui_factory.clear_term()
128
127
    _bzr_logger.info(*args, **kwargs)
129
128
 
130
129
 
131
130
def warning(*args, **kwargs):
132
 
    import bzrlib.ui
133
 
    bzrlib.ui.ui_factory.clear_term()
 
131
    ui.ui_factory.clear_term()
134
132
    _bzr_logger.warning(*args, **kwargs)
135
133
 
136
134