/[navidoc]/navidoc/navidoc/utils/path.py
ViewVC logotype

Diff of /navidoc/navidoc/utils/path.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by humppake, Tue Mar 18 14:32:53 2003 UTC revision 1.2 by humppake, Tue Mar 18 16:02:27 2003 UTC
# Line 31  def _rstFiles(path): Line 31  def _rstFiles(path):
31      """      """
32      Returns all ".rst" files under path. Nonrecursive.      Returns all ".rst" files under path. Nonrecursive.
33      """      """
34      files = [f for f in os.listdir(mputils._slashify(path)) \      files = [f for f in os.listdir(_slashify(path)) \
35             if os.path.isfile(mputils._slashify(path)+f) and not f.startswith('.')             if os.path.isfile(_slashify(path)+f) and not f.startswith('.')
36                and '#' not in f and '~' not in f]                and '#' not in f and '~' not in f]
37      rstfiles = [f for f in files if f.endswith('.rst')]      rstfiles = [f for f in files if f.endswith('.rst')]
38      return rstfiles      return rstfiles

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26