~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_readdir_py.py

  • Committer: Robert Collins
  • Date: 2008-08-20 03:30:17 UTC
  • mto: This revision was merged to the branch mainline in revision 3682.
  • Revision ID: robertc@robertcollins.net-20080820033017-q8y6stxz8f5kxu9y
Update readdir pyrex source files and usage in line with current practice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    a file kind in the second element of the returned tuples.
28
28
 
29
29
    :param path: the directory to list.
30
 
    :return: a list of (basename, None) tuples.
 
30
    :return: a list of (None, basename) tuples.
31
31
    """
32
 
    return [(name, 'unknown') for name in os.listdir(path)]
 
32
    return [(None, name) for name in os.listdir(path)]