/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 breezy/tests/features.py

  • Committer: Vincent Ladeuil
  • Date: 2019-03-06 14:03:19 UTC
  • mfrom: (7290.1.15 work)
  • mto: This revision was merged to the branch mainline in revision 7295.
  • Revision ID: v.ladeuil+brz@free.fr-20190306140319-zgjegynpjv3vv0jg
Merge 3.0 into trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
568
568
 
569
569
 
570
570
BackslashFilenameFeature = _BackslashFilenameFeature()
 
571
 
 
572
 
 
573
class PathFeature(Feature):
 
574
    """Feature testing whether a particular path exists."""
 
575
 
 
576
    def __init__(self, path):
 
577
        super(PathFeature, self).__init__()
 
578
        self.path = path
 
579
 
 
580
    def _probe(self):
 
581
        return os.path.exists(self.path)
 
582
 
 
583
    def feature_name(self):
 
584
        return "%s exists" % self.path