glob.glob unicode bug or feature

Peter Otten __peter__ at web.de
Sun Aug 1 09:45:00 CEST 2004


Neil Hodgson wrote:

>> if not dirname:
>>     dirname = type(dirname)(os.curdir)
> 
>    This didn't work for me as os.curdir has already been added in the call
> to glob1. Instead, for Python 2.3, also changing line 22 inside glob() to
> 
>         return glob1(type(dirname)(os.curdir), basename)
> 
>    worked.

I should have tried before posting. Now you point it out it seems I've
changed a piece of dead code. Or am I missing something ...again?

Peter




More information about the Python-list mailing list