# Import Numpy instead of Numeric Index: fofix-dfsg-3.121/src/Audio.py =================================================================== --- fofix-dfsg-3.121.orig/src/Audio.py 2010-02-21 12:32:51.000000000 +0100 +++ fofix-dfsg-3.121/src/Audio.py 2010-02-21 12:32:52.000000000 +0100 @@ -220,13 +220,14 @@ def fadeout(self, time): self.sound.fadeout(time) -if tuple(int(i) for i in pygame.__version__[:5].split('.')) < (1, 9, 0): - # Must use Numeric instead of numpy, since PyGame 1.7.1 is - # not compatible with the latter, and 1.8.x isn't either (though it claims to be). - import Numeric - def zeros(size): - return Numeric.zeros(size, typecode='s') #myfingershurt: typecode s = short = int16 -else: +# Debian has no Python Numeric module anymore +# if tuple(int(i) for i in pygame.__version__[:5].split('.')) < (1, 9, 0): +# # Must use Numeric instead of numpy, since PyGame 1.7.1 is +# # not compatible with the latter, and 1.8.x isn't either (though it claims to be). +# import Numeric +# def zeros(size): +# return Numeric.zeros(size, typecode='s') #myfingershurt: typecode s = short = int16 +# else: import numpy def zeros(size): return numpy.zeros(size, dtype='h')