From 114f51933727181321ea1b4ce2b0c7fe7b2d3bc5 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 20 Nov 2007 21:39:21 +0000 Subject: [PATCH] default description is '' instead of None --- src/filetransfers_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index 89f33b636..b39f16f5f 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -264,7 +264,7 @@ _('Connection with peer cannot be established.')) btn.show() desc_hbox.show_all() - def send_file(self, account, contact, file_path, file_desc=None): + def send_file(self, account, contact, file_path, file_desc=''): ''' start the real transfer(upload) of the file ''' if gtkgui_helpers.file_is_locked(file_path): pritext = _('Gajim cannot access this file') @@ -551,7 +551,8 @@ _('Connection with peer cannot be established.')) return iter iter = self.model.iter_next(iter) - def get_send_file_props(self, account, contact, file_path, file_name, file_desc=None): + def get_send_file_props(self, account, contact, file_path, file_name, + file_desc=''): ''' create new file_props dict and set initial file transfer properties in it''' file_props = {'file-name' : file_path, 'name' : file_name,