changeset 37ac1c940b85 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=37ac1c940b85
description: rename some var

diffstat:

 plugins/whiteboard/whiteboard_widget.py |  15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (33 lines):

diff -r 7bcd899066fa -r 37ac1c940b85 plugins/whiteboard/whiteboard_widget.py
--- a/plugins/whiteboard/whiteboard_widget.py   Tue Nov 02 15:36:29 2010 +0300
+++ b/plugins/whiteboard/whiteboard_widget.py   Tue Nov 02 18:54:32 2010 +0100
@@ -254,12 +254,11 @@
             '''
             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 @@
         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)
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to