[issue6342] io.path.ismount gives "local variable 'p' referenced before assignment" error on Windows versions (ntpath.py)

2009-06-25 Thread Georgios Moralis
New submission from Georgios Moralis : It returns with the following error: UnboundLocalError: local variable 'p' referenced before assignment Example causing this: --- CODE FOLLOWS --- import os def show_cwd_list(): alpha = os.listdir(os.getcwd()) for dirnm in alpha[:]:

[issue6341] io.path.ismount gives "local variable 'p' referenced before assignment" error on Windows versions (ntpath.py)

2009-06-25 Thread Georgios Moralis
New submission from Georgios Moralis : It returns with the following error: UnboundLocalError: local variable 'p' referenced before assignment Example causing this: --- CODE FOLLOWS --- import os def show_cwd_list(): alpha = os.listdir(os.getcwd()) for dirnm in alpha[:]: