dabo Commit
Revision 4961
Date: 2009-01-25 08:01:13 -0800 (Sun, 25 Jan 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/4961
Changed:
U trunk/demo/samples/games/Minesweeper.py
Log:
Changed the name 'as' to a non-keyword for Python 2.6+ compatibility.
Diff:
Modified: trunk/demo/samples/games/Minesweeper.py
===================================================================
--- trunk/demo/samples/games/Minesweeper.py 2009-01-25 15:52:43 UTC (rev
4960)
+++ trunk/demo/samples/games/Minesweeper.py 2009-01-25 16:01:13 UTC (rev
4961)
@@ -428,9 +428,9 @@
def _fillAdjacentCounts(self):
for key in self._boardDict.keys():
- as = self.getAdjacentSquares(key)
+ adj = self.getAdjacentSquares(key)
c = 0
- for s in as:
+ for s in adj:
if self._boardDict[s]["mine"]:
c += 1
self._boardDict[key]["adjacent"] = c
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]