File: warnings.patch

package info (click to toggle)
pysiogame 4.20.01-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,876 kB
  • sloc: python: 48,742; xml: 3,813; sh: 30; makefile: 11
file content (31 lines) | stat: -rw-r--r-- 1,294 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: eduactiv8-4.20.01-source/game_boards/game000.py
===================================================================
--- eduactiv8-4.20.01-source.orig/game_boards/game000.py
+++ eduactiv8-4.20.01-source/game_boards/game000.py
@@ -117,7 +117,7 @@ class Board(gd.BoardGame):
                             os.path.join("home_icons", img), alpha=True)
         self.board.ships[-1].immobilize()
 
-        if self.mainloop.scheme_code is "WB":
+        if self.mainloop.scheme_code == "WB":
             img = 'score_hc_awb_l.png'
         else:
             img = 'score_hc_wb_l.png'
@@ -125,7 +125,7 @@ class Board(gd.BoardGame):
                             os.path.join("home_icons", img), alpha=True)
         self.board.ships[-1].immobilize()
 
-        if self.mainloop.scheme_code is "BW":
+        if self.mainloop.scheme_code == "BW":
             img = 'score_hc_abw_l.png'
         else:
             img = 'score_hc_bw_l.png'
@@ -133,7 +133,7 @@ class Board(gd.BoardGame):
                             os.path.join("home_icons", img), alpha=True)
         self.board.ships[-1].immobilize()
 
-        if self.mainloop.scheme_code is "BY":
+        if self.mainloop.scheme_code == "BY":
             img = 'score_hc_aby_l.png'
         else:
             img = 'score_hc_by_l.png'