~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to progress.py

  • Committer: Aaron Bentley
  • Date: 2005-06-09 23:27:42 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050609232742-e3a6e7ccc5fcf6de
Disabled fancy output when stdout is not a tty

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
            print "All tests passed"
132
132
    else:
133
133
        print "No tests to run"
 
134
 
 
135
def rewriting_supported(out=sys.stdout):
 
136
    return hasattr(out, 'isatty') and out.isatty()
 
137
 
134
138
if __name__ == "__main__":
135
139
    run_tests()