Message5699

Author pekka.klarck
Recipients pekka.klarck
Date 2010-04-14.11:07:21
SpamBayes Score 0.0010162342
Marked as misclassified No
Message-id <1271243242.56.0.695974502852.issue1598@psf.upfronthosting.co.za>
In-reply-to
Content
The bug can be reproduced by running the code below on Windows:

-----8<-----------8<---------
from xml.etree import ElementTree as ET
import os

path = 'temp.xml'
f = open(path, 'w')
f.write('<whatever/>')
f.close()

ET.parse(path)
os.remove(path)
-----8<-----------8<---------

The result of execution is this error:

Traceback (most recent call last):
  File "rmbug.py", line 10, in <module>
    os.remove(path)
  File "C:\jython2.5.1\Lib\os.py", line 342, in remove
    raise OSError(0, "couldn't delete file", path)
OSError: [Errno 0] couldn't delete file: 'temp.xml'
History
Date User Action Args
2010-04-14 11:07:22pekka.klarcksetrecipients: + pekka.klarck
2010-04-14 11:07:22pekka.klarcksetmessageid: <1271243242.56.0.695974502852.issue1598@psf.upfronthosting.co.za>
2010-04-14 11:07:22pekka.klarcklinkissue1598 messages
2010-04-14 11:07:21pekka.klarckcreate