[issue2549] shutil: NameError (WindowsWrror) when moving from ext3 to fat32 under linux

2008-04-04 Thread Chabod

New submission from Chabod <[EMAIL PROTECTED]>:

shutil generate a NameError (WindowsError) exception when moving a
directory from an ext3 to a fat32 under linux

To reproduce it: 
under linux, current path on an ext3 filesytem, try to enter following
commands: 
mkdir toto #on an ext3 partition
python
import shutil
shutil.move("toto", "/media/fat32/toto") # /media/fat32 is mounted on a
fat32 filesystem

You will produce following error:
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.5/shutil.py", line 196, in move
copytree(src, dst, symlinks=True)
  File "/usr/lib/python2.5/shutil.py", line 132, in copytree
except WindowsError:
NameError: global name 'WindowsError' is not defined

Tested on ubuntu Feisty and a newly installed Hardy-beta.

--
components: Library (Lib)
messages: 64930
nosy: jerome.chabod
severity: normal
status: open
title: shutil: NameError (WindowsWrror) when moving from ext3 to fat32 under 
linux
type: crash
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2549>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2549] shutil: NameError (WindowsError) when moving from ext3 to fat32 under linux

2008-04-04 Thread Chabod

Changes by Chabod <[EMAIL PROTECTED]>:


--
title: shutil: NameError (WindowsWrror) when moving from ext3 to fat32 under 
linux -> shutil: NameError (WindowsError) when moving from ext3 to fat32 under 
linux

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2549>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com