[gnome-games] Sudoku: Don’t use set.update() with multiple arguments
- From: Jason Clinton <jclinton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Sudoku: Don’t use set.update() with multiple arguments
- Date: Thu, 13 May 2010 02:02:14 +0000 (UTC)
commit c7a626928b04fd8a366d970fda2b3f93bcd01c13
Author: Josselin Mouette <joss malsain org>
Date: Wed May 12 21:02:38 2010 -0500
Sudoku: Donâ??t use set.update() with multiple arguments
gnome-sudoku 2.30 uses a feature specific to Python 2.6, despite configure.in
claiming to require only 2.4, and the external dependency set listing 2.5.2 as
the minimal version.
The attached patch should fix the bug.
gnome-sudoku/src/lib/sudoku.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/sudoku.py b/gnome-sudoku/src/lib/sudoku.py
index 9aced3d..72ecfde 100644
--- a/gnome-sudoku/src/lib/sudoku.py
+++ b/gnome-sudoku/src/lib/sudoku.py
@@ -570,9 +570,9 @@ class InteractiveSudoku (SudokuSolver):
# Find any cells that conflict with the new value for this cell
coords = set([])
- coords.update(self.row_coords[y],
- self.col_coords[x],
- self.box_coords[self.box_by_coords[(x, y)]])
+ coords.update(self.row_coords[y])
+ coords.update(self.col_coords[x])
+ coords.update(self.box_coords[self.box_by_coords[(x, y)]])
coords.discard((x, y))
conflicting_coordinates = []
for xx, yy in coords:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]