/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 bzrlib/_readdir_py.py

  • Committer: Robert Collins
  • Date: 2008-09-02 04:45:47 UTC
  • mto: This revision was merged to the branch mainline in revision 3682.
  • Revision ID: robertc@robertcollins.net-20080902044547-9s1i9d3mwemkfrsp
Docstring and copyright header update per Martin's review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
 
23
23
def read_dir(path):
24
 
    """Like os.listdir, this reads a directories contents.
 
24
    """Like os.listdir, this reads the contents of a directory.
25
25
 
26
26
    There is a C module which is recommended which will return
27
 
    a file kind in the second element of the returned tuples.
 
27
    a sort key in the first element of the tuple to allow slightly
 
28
    more efficient behaviour on the operating systems part.
28
29
 
29
30
    :param path: the directory to list.
30
31
    :return: a list of (None, basename) tuples.