pylint fixes

This commit is contained in:
Simon Schampijer
2009-08-24 14:51:00 +02:00
parent 496090fe62
commit e1e8647de9
6 changed files with 12 additions and 14 deletions
+2 -1
View File
@@ -260,7 +260,8 @@ class ActivityBundle(Bundle):
return os.path.join(self._path, icon_path)
else:
icon_data = self.get_file(icon_path).read()
temp_file, temp_file_path = tempfile.mkstemp(prefix=self._icon, suffix='.svg')
temp_file, temp_file_path = tempfile.mkstemp(prefix=self._icon,
suffix='.svg')
os.write(temp_file, icon_data)
os.close(temp_file)
return util.TempFilePath(temp_file_path)