conduit r1823 - in trunk: . conduit/platform
- From: jstowers svn gnome org
- To: svn-commits-list gnome org
- Subject: conduit r1823 - in trunk: . conduit/platform
- Date: Tue, 20 Jan 2009 04:32:34 +0000 (UTC)
Author: jstowers
Date: Tue Jan 20 04:32:34 2009
New Revision: 1823
URL: http://svn.gnome.org/viewvc/conduit?rev=1823&view=rev
Log:
2009-01-20 John Stowers <john stowers gmail com>
* conduit/platform/FileGio.py: Close the file after
writing to it. Fixes #568380
Modified:
trunk/ChangeLog
trunk/conduit/platform/FileGio.py
Modified: trunk/conduit/platform/FileGio.py
==============================================================================
--- trunk/conduit/platform/FileGio.py (original)
+++ trunk/conduit/platform/FileGio.py Tue Jan 20 04:32:34 2009
@@ -44,11 +44,10 @@
return self.fileInfo.get_file_type() == gio.FILE_TYPE_DIRECTORY
def delete(self):
- #close the file and the handle so that the file info is refreshed
- self.close()
try:
#FIXME: Trash first?
self._file.delete()
+ self.close()
except gio.Error, e:
log.warn("File delete error: %s" % e)
@@ -103,6 +102,7 @@
def set_contents(self, contents):
self._file.replace_contents(contents)
+ self.close()
def get_mimetype(self):
self._get_file_info()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]