Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2010-11-02 20:54:32 +0300
committerYann Leboulanger <asterix@lagaule.org>2010-11-02 20:54:32 +0300
commit1e39863edf623187d6fbe210c2fb2fb7ca173a95 (patch)
tree3f1f7b89ced35517512f568e6126c55f4b5bf748 /plugins
parent045a74c7b4bb6e3a0a15c4bb8ad95c3a9699d56a (diff)
rename some var
Diffstat (limited to 'plugins')
-rw-r--r--plugins/whiteboard/whiteboard_widget.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/whiteboard/whiteboard_widget.py b/plugins/whiteboard/whiteboard_widget.py
index a3f756fa6..8b92b8bfb 100644
--- a/plugins/whiteboard/whiteboard_widget.py
+++ b/plugins/whiteboard/whiteboard_widget.py
@@ -254,12 +254,11 @@ class SvgChooserDialog(FileChooserDialog):
'''
check if file exists and call callback
'''
- path_to_clientcert_file = self.get_filename()
- path_to_clientcert_file = \
- gtkgui_helpers.decode_filechooser_file_paths(
- (path_to_clientcert_file,))[0]
+ path_to_file = self.get_filename()
+ path_to_file = gtkgui_helpers.decode_filechooser_file_paths(
+ (path_to_file,))[0]
widget.destroy()
- callback(path_to_clientcert_file)
+ callback(path_to_file)
FileChooserDialog.__init__(self,
title_text=_('Save Image as...'),
@@ -412,9 +411,9 @@ class SVGObject():
del self.items[rid]
def export_svg(self, filename):
- file = open(filename, 'w')
- file.writelines(str(self.svg))
- file.close()
+ f = open(filename, 'w')
+ f.writelines(str(self.svg))
+ f.close()
def item_button_press_events(self, item, target_item, event):
self.del_item(item)