gnome-games r8037 - branches/gnome-2-24/glchess/src/lib/gtkui
- From: rancell svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8037 - branches/gnome-2-24/glchess/src/lib/gtkui
- Date: Wed, 15 Oct 2008 11:44:47 +0000 (UTC)
Author: rancell
Date: Wed Oct 15 11:44:47 2008
New Revision: 8037
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8037&view=rev
Log:
Fix potential bugs found by PyChecker
Modified:
branches/gnome-2-24/glchess/src/lib/gtkui/network.py
Modified: branches/gnome-2-24/glchess/src/lib/gtkui/network.py
==============================================================================
--- branches/gnome-2-24/glchess/src/lib/gtkui/network.py (original)
+++ branches/gnome-2-24/glchess/src/lib/gtkui/network.py Wed Oct 15 11:44:47 2008
@@ -217,7 +217,7 @@
"""Called by glchess.ui.UIController"""
iter = self.roomModel.get_iter_first()
while iter is not None:
- if table is self.roomModel.get_value(iter, 0):
+ if room is self.roomModel.get_value(iter, 0):
self.roomModel.remove(iter)
return
iter = self.roomModel.iter_next(iter)
@@ -421,7 +421,7 @@
# Get the players
game.white.type = self.__getComboData(self.__gui.get_widget('white_type_combo'), 0)
- if game.white.type is '':
+ if game.white.type == '':
game.white.name = _('White')
else:
game.white.name = self.__getComboData(self.__gui.get_widget('white_type_combo'), 2)
@@ -435,7 +435,7 @@
game.duration = self.__getComboData(self.__gui.get_widget('time_combo'), 1)
if game.duration < 0:
- multplier = self.__getComboData(self.__gui.get_widget('custom_time_units_combo'), 1)
+ multiplier = self.__getComboData(self.__gui.get_widget('custom_time_units_combo'), 1)
game.duration = self.__getComboData(self.__gui.get_widget('custom_time_spin'), 1) * multiplier
# Save properties
@@ -459,7 +459,7 @@
widget = self.__gui.get_widget('table_join_button')
widget.set_sensitive(isSensitive)
- def _on_table_list_activated():
+ def _on_table_list_activated(self):
pass
def _on_server_combo_changed(self, widget):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]