/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/progress.py

  • Committer: Martin Pool
  • Date: 2009-06-22 09:16:26 UTC
  • mto: This revision was merged to the branch mainline in revision 4558.
  • Revision ID: mbp@sourcefrog.net-20090622091626-03xi30uj70owv95d
Fuse CLIUIFactory and TextUIFactory and deprecate the old name

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        return False
57
57
    if not isatty():
58
58
        return False
 
59
    # The following case also handles Win32 - on that platform $TERM is
 
60
    # typically never set, so the case None is treated as a smart terminal,
 
61
    # not dumb.  <https://bugs.launchpad.net/bugs/334808>  win32 files do have
 
62
    # isatty methods that return true.
59
63
    if os.environ.get('TERM') == 'dumb':
60
64
        # e.g. emacs compile window
61
65
        return False