From 4f55c1826a407ba7adfd9f5a4770c8f104882f5d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 11 Oct 2008 13:21:25 +0000 Subject: [PATCH] fix var names. type -> type_. see #4403 --- src/message_window.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/message_window.py b/src/message_window.py index 3811d6fb8..c42e40b88 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -1039,7 +1039,7 @@ May be useful some day in the future?''' return ctrl return None - def get_controls(self, type_ = None, acct = None): + def get_controls(self, type_=None, acct=None): ctrls = [] for c in self.controls(): if acct and c.account != acct: @@ -1084,15 +1084,15 @@ May be useful some day in the future?''' elif self.mode == self.ONE_MSG_WINDOW_PERACCT: acct = msg_win.account elif self.mode == self.ONE_MSG_WINDOW_PERTYPE: - type = msg_win.type - pos_x_key = type + '-msgwin-x-position' - pos_y_key = type + '-msgwin-y-position' - size_width_key = type + '-msgwin-width' - size_height_key = type + '-msgwin-height' + type_ = msg_win.type + pos_x_key = type_ + '-msgwin-x-position' + pos_y_key = type_ + '-msgwin-y-position' + size_width_key = type_ + '-msgwin-width' + size_height_key = type_ + '-msgwin-height' elif self.mode == self.ONE_MSG_WINDOW_NEVER: - type = msg_win.type - size_width_key = type + '-msgwin-width' - size_height_key = type + '-msgwin-height' + type_ = msg_win.type + size_width_key = type_ + '-msgwin-width' + size_height_key = type_ + '-msgwin-height' elif self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: # Ignore any hpaned width width = msg_win.notebook.allocation.width