~pythonregexp2.7/python/issue2636

« back to all changes in this revision

Viewing changes to Lib/macpath.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-05-24 16:05:21 UTC
  • mfrom: (39021.1.401 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080524160521-1xenj7p6u3wb89et
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""Pathname and path-related operations for the Macintosh."""
2
2
 
3
3
import os
 
4
import warnings
4
5
from stat import *
5
6
import genericpath
6
7
from genericpath import *
169
170
    beyond that arg is always passed to func.  It can be used, e.g., to pass
170
171
    a filename pattern, or a mutable object designed to accumulate
171
172
    statistics.  Passing None for arg is common."""
172
 
 
 
173
    warnings.warnpy3k("In 3.x, os.path.walk is removed in favor of os.walk.")
173
174
    try:
174
175
        names = os.listdir(top)
175
176
    except os.error: