[Python-3000] Removal of os.path.walk

Humberto Diogenes humberto at digi.com.br
Fri May 9 09:45:42 CEST 2008


On 08/05/2008, at 00:12, Guido van Rossum wrote:

> On Wed, May 7, 2008 at 7:21 PM, Benjamin Peterson
> <musiccomposition at gmail.com> wrote:
>> Can I go ahead and remove this then?
>
> Yes, but let's do it after Barry has released the alphas.
>
> --  
> --Guido van Rossum (home page: http://www.python.org/~guido/)


Hi, Benjamin!

   I noticed you've already removed os.path.walk in r62909, but there  
are still some references to it in the code, as I noticed issuing a  
`make altinstall` on a Mac:
   AttributeError: 'module' object has no attribute 'walk'


   References in .py files:

./Mac/scripts/cachersrc.py:42:        os.path.walk(dir, handler,  
(verbose, force))
./Mac/scripts/zappycfiles.py:25:    os.path.walk(dir, walker, None)
./Mac/Tools/Doc/setup.py:112:        os.path.walk(self.build_html,  
self.visit, None)
./setup.py:1577:        os.path.walk(dirname,  
self.set_dir_modes_visitor, mode)
./Tools/i18n/pygettext.py:344:        os.path.walk(name,  
_visit_pyfiles, list)
./Tools/scripts/findlinksto.py:25:        os.path.walk(dirname, visit,  
prog)
./Tools/versioncheck/checkversions.py:34:    os.path.walk(tree,  
check1dir, None)


   Maybe it would be nice to include some tips about the translation  
from os.path.walk to os.walk in the migration notes, too.

Thanks!
--
Humberto Diógenes
http://humberto.digi.com.br



More information about the Python-3000 mailing list