[New-bugs-announce] [issue6209] compilation error in std. lib. module shutil (Python 3.1rc1, platform Win32)

dpodbori report at bugs.python.org
Fri Jun 5 21:01:44 CEST 2009


New submission from dpodbori <dpodbori at gmail.com>:

In Python 3.1rc1 (observed under Win32) standard library function 
shutil.copyfile(src, dst) has an unreferenced local variable "st" that 
causes the following exception in the calling code:

D:\> c:\Python31\python.exe copyDrivers.py
Traceback (most recent call last):
  File "copyDrivers.py", line 20, in <module>
    shutil.copy( file1, file2)
  File "c:\Python31\lib\shutil.py", line 101, in copy
    copyfile(src, dst)
  File "c:\Python31\lib\shutil.py", line 62, in copyfile
    if stat.S_ISFIFO(st.st_mode):
UnboundLocalError: local variable 'st' referenced before assignment

----------
components: Library (Lib)
messages: 88964
nosy: dpodbori
severity: normal
status: open
title: compilation error in std. lib. module shutil (Python 3.1rc1, platform Win32)
type: compile error
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6209>
_______________________________________


More information about the New-bugs-announce mailing list