~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Patch Queue Manager
  • Date: 2012-08-23 15:58:32 UTC
  • mfrom: (6531.3.10 merge-grep)
  • Revision ID: pqm@pqm.ubuntu.com-20120823155832-tqnebdscxhd8euki
(jelmer) Merge the grep plugin into the core. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
492
492
 
493
493
 
494
494
win32_feature = Win32Feature()
 
495
 
 
496
 
 
497
class _ColorFeature(Feature):
 
498
 
 
499
    def _probe(self):
 
500
        from bzrlib._termcolor import allow_color
 
501
        return allow_color()
 
502
 
 
503
    def feature_name(self):
 
504
        return "Terminal supports color."
 
505
 
 
506
ColorFeature = _ColorFeature()