This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dpodbori
Recipients dpodbori
Date 2009-06-05.19:01:42
SpamBayes Score 1.6391388e-11
Marked as misclassified No
Message-id <1244228504.73.0.885392136191.issue6209@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-06-05 19:01:44dpodborisetrecipients: + dpodbori
2009-06-05 19:01:44dpodborisetmessageid: <1244228504.73.0.885392136191.issue6209@psf.upfronthosting.co.za>
2009-06-05 19:01:42dpodborilinkissue6209 messages
2009-06-05 19:01:42dpodboricreate