~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/treeshape.py

  • Committer: Martin Pool
  • Date: 2007-06-21 04:27:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2551.
  • Revision ID: mbp@sourcefrog.net-20070621042747-e3g0tdn8if750mv5
More commit specs

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        filenames.sort()
66
66
        for fn in filenames:
67
67
            fullpath = pathjoin(dirpath, fn)
68
 
            if (fullpath[-1] in '@/'):
69
 
                raise AssertionError(fullpath)
 
68
            assert not (fullpath[-1] in '@/')
70
69
            info = os.lstat(fullpath)
71
70
            if stat.S_ISLNK(info.st_mode):
72
71
                yield (fullpath + '@', os.readlink(fullpath))