~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-22 11:59:37 UTC
  • mfrom: (3950.1.1 bzr.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090122115937-y54v6rziznwn10yu
(vila) One-line fix for previous commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
    If stdout is a smart terminal, this gets a smart UIFactory with 
225
225
    progress indicators, etc.  If it's a dumb terminal, just plain text output.
226
226
    """
 
227
    cls = None
227
228
    isatty = getattr(stdin, 'isatty', None)
228
229
    if isatty is None:
229
230
        cls = CLIUIFactory