[gnome-games/gnome-2-30] Sudoku: Don’t use set.update() with multiple arguments



commit 04f7da21e716d3f5169acf2353c81fa808118cc8
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 7d0a62b..c37136e 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]