tags 588716 pending
tags 589097 pending
thanks

Dear maintainer,

I've prepared an NMU for pytris (versioned as 0.98+nmu1) and uploaded it to
DELAYED/2. Please feel free to tell me if I should delay it longer.

Cheers,
Serafeim


diff -Nurp pytris-0.98.orig/CHANGES pytris-0.98+nmu1/CHANGES
--- pytris-0.98.orig/CHANGES    2006-04-06 20:50:35.000000000 +0200
+++ pytris-0.98+nmu1/CHANGES    2010-07-15 00:09:42.000000000 +0200
@@ -1,3 +1,13 @@
+pytris (0.98+nmu1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "random" import module for py2.6 transition (closes: #588716). Thanks
+    to Stefano Rivera <stef...@rivera.za.net>
+  * Fix TypeError upon exit (closes: #589097)
+  * Create debian/source/format
+
+ -- Serafeim Zanikolas <s...@debian.org>  Wed, 14 Jul 2010 23:27:19 +0200
+
 pytris (0.98) unstable; urgency=low

   * added back forgotten manpage (closes: #360757)
diff -Nurp pytris-0.98.orig/debian/changelog pytris-0.98+nmu1/debian/changelog
--- pytris-0.98.orig/debian/changelog   2006-04-06 20:50:35.000000000 +0200
+++ pytris-0.98+nmu1/debian/changelog   2010-07-15 00:09:42.000000000 +0200
@@ -1,3 +1,13 @@
+pytris (0.98+nmu1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "random" import module for py2.6 transition (closes: #588716). Thanks
+    to Stefano Rivera <stef...@rivera.za.net>
+  * Fix TypeError upon exit (closes: #589097)
+  * Create debian/source/format
+
+ -- Serafeim Zanikolas <s...@debian.org>  Wed, 14 Jul 2010 23:27:19 +0200
+
 pytris (0.98) unstable; urgency=low

   * added back forgotten manpage (closes: #360757)
diff -Nurp pytris-0.98.orig/debian/source/format 
pytris-0.98+nmu1/debian/source/format
--- pytris-0.98.orig/debian/source/format       1970-01-01 01:00:00.000000000 
+0100
+++ pytris-0.98+nmu1/debian/source/format       2010-07-15 00:09:28.000000000 
+0200
@@ -0,0 +1 @@
+1.0
diff -Nurp pytris-0.98.orig/pytris.py pytris-0.98+nmu1/pytris.py
--- pytris-0.98.orig/pytris.py  2006-04-06 20:24:38.000000000 +0200
+++ pytris-0.98+nmu1/pytris.py  2010-07-15 00:03:33.000000000 +0200
@@ -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):
@@ -241,10 +241,6 @@ class Display:
         display.stdscr.noutrefresh()
         doupdate()

-    def __del__(self):
-        echo()
-        nl()
-        curs_set(1)



@@ -547,12 +543,12 @@ class Pieces:
                 )

         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 +783,8 @@ def kpract_r(a):
     "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()
@@ -1095,5 +1091,11 @@ def disp(stdscr):
         finscore(0)
         finalwait()

+def restore_screen():
+    echo()
+    nl()
+    curs_set(1)
+
 wrapper(disp)
+restore_screen()




-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to