0.5.4: linux: check_latest_version leaves a file in /tmp
Posted: September 26th, 2010, 3:56 pm
Apologies if I'm off-base.
I think checking for the latest version of sabnzbd+ leaves a temporary file in /tmp each time it is invoked.
I think you're throwing away the name of the temporary file returned by urlretrieve, whereas I think you need to delete it after you've done the f.close ()
Thanks!
-- gyre --
I think checking for the latest version of sabnzbd+ leaves a temporary file in /tmp each time it is invoked.
Code: Select all
fn = urllib.urlretrieve('http://sabnzbdplus.sourceforge.net/version/latest')[0]
f = open(fn, 'r')
data = f.read()
f.close()
Thanks!
-- gyre --