~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_readdir_py.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
def _kind_from_mode(stat_mode, _formats=_formats, _unknown='unknown'):
45
45
    """Generate a file kind from a stat mode. This is used in walkdirs.
46
46
 
47
 
    Its performance is critical: Do not mutate without careful benchmarking.
 
47
    It's performance is critical: Do not mutate without careful benchmarking.
48
48
    """
49
49
    try:
50
50
        return _formats[stat_mode & 0170000]