~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-01-13 02:09:50 UTC
  • mfrom: (5582.4.5 lazy-ui.diff)
  • Revision ID: pqm@pqm.ubuntu.com-20110113020950-fj3kzj8wviwrkcrn
(jelmer) More lazy loading of bzrlib.ui and bzrlib.urlutils. (Jelmer
 Vernooij)

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