Package: pytris Version: 0.98 Severity: grave Tags: patch Justification: renders package unusable User: [email protected] Usertags: origin-ubuntu maverick ubuntu-patch
Hi, pytris completely fails to start on a system with Python >= 2.5. An Ubuntu developer has produced a patch for this (attached). Additionally, please note that your package doesn't use a python helper system, as recommended by the Python policy. I suggest python-support or the brand new dh_python2. If you want any help with that, please pop into #debian-python on OFTC or ask in [email protected] SR -- Stefano Rivera http://tumbleweed.org.za/ H: +27 21 465 6908 C: +27 72 419 8559 UCT: x3127
--- usr/games/pytris.py 2006-04-06 23:16:47.000000000 +0200
+++ usr/games/pytris.py 2009-03-26 21:25:16.000000000 +0100
@@ -2,7 +2,7 @@
#from ncurses.curses import *
from curses import *
-import time, traceback, whrandom, copy, socket, sys, getopt
+import time, traceback, random, copy, socket, sys, getopt
import string, pickle, os, pwd
def make_tensor(*args):
@@ -547,12 +547,12 @@
)
self.masks = masks[t]
- self.rpool = map(lambda x, self=self:whrandom.choice(self.masks), (globalvar.next+1)*[None]) # pool of pieces
+ self.rpool = map(lambda x, self=self:random.choice(self.masks), (globalvar.next+1)*[None]) # pool of pieces
def getpiece(self):
p = self.rpool[0]
del self.rpool[0]
- self.rpool.append(whrandom.choice(self.masks))
+ self.rpool.append(random.choice(self.masks))
return p
@@ -787,8 +787,8 @@
"act as robot"
tickv = 1
r = 1
- kpr = ord(whrandom.choice(('u', 'i', 'o')))
- if whrandom.random()>0.3:
+ kpr = ord(random.choice(('u', 'i', 'o')))
+ if random.random()>0.3:
kpr = -1
if kpr == ord('u'):
a.left()
signature.asc
Description: Digital signature

