~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Launchpad Translations on behalf of bzr-core
  • Date: 2012-12-24 04:30:21 UTC
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: launchpad_translations_on_behalf_of_bzr-core-20121224043021-0jvs6d37i2eagv7x
Launchpad automatic translations update.

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()