Package: ghextris
Version: 0.9.0-1.2
Followup-For: Bug #403874

Greetings,

I have attached a patch that fixes the #!/usr/bin/python2.3 problem and the
depreciated whrandom warning.  I am not sure how to fix the default-icon
warning.  I think it has something to do with python-gnome2 or maybe libgnome.
I noticed references for both those packages while googling about that warning.

Regards,
Jason

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
diff -Nru ghextris-0.9.0/debian/changelog ghextris-0.9.0/debian/changelog
--- /tmp/UPfR58coa8/ghextris-0.9.0/debian/changelog     2006-10-26 
23:26:33.000000000 -0400
+++ /tmp/3ZLzyNT609/ghextris-0.9.0/debian/changelog     2006-12-21 
21:49:12.000000000 -0500
@@ -1,3 +1,11 @@
+ghextris (0.9.0-1.3) unstable; urgency=low
+  
+  * Non-maintainer upload.
+  * Renamed #!/usr/bin/python2.3 to #!/usr/bin/python.
+  * Changed program to use random instead of whrandom which is depreciated.
+
+ -- Jason Harrison <[EMAIL PROTECTED]>  Thurs, 21 Dec 2006 21:48:00 -0500
+
 ghextris (0.9.0-1.2) unstable; urgency=low
 
   * NMU.
diff -Nru ghextris-0.9.0/ghextris.py ghextris-0.9.0/ghextris.py
--- /tmp/UPfR58coa8/ghextris-0.9.0/ghextris.py  2006-07-22 14:07:19.000000000 
-0400
+++ /tmp/3ZLzyNT609/ghextris-0.9.0/ghextris.py  2006-12-21 21:40:25.000000000 
-0500
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.3
+#!/usr/bin/python
 
 # Gnome-hextris; a free rewrite of the xhextris game in Python for Gnome
 # Copyright 2004 Mikko Rauhala <[EMAIL PROTECTED]>
@@ -36,7 +36,7 @@
 
 import gettext
 
-import whrandom
+import random
 
 class Hextris:
     def __init__(self):
@@ -216,7 +216,7 @@
             self.rowgroups.append(self.board.add("GnomeCanvasGroup", x = 0,
                                                  y = i * self.pieceheight))
         
-        self.nextnum = whrandom.randint(0, 9)
+        self.nextnum = random.randint(0, 9)
         self.next_piece()
 
         if self.running == False:
@@ -277,7 +277,7 @@
         win.connect("key-press-event", self.key_handler)
         self.init_board()
 
-        whrandom.seed()
+        random.seed()
 
         self.update_appbar()
 
@@ -285,7 +285,7 @@
 
     def next_piece(self):
         self.piecenum = self.nextnum
-        self.nextnum = whrandom.randint(0, 9)
+        self.nextnum = random.randint(0, 9)
         self.attitude = 0
         self.piece_x = (self.cols/2)-1 + self.deltax[self.piecenum]
         self.piece_y = -3 + self.deltax[self.piecenum]

Reply via email to