1. pygame
  2. Untitled project
  3. pygame

Source

pygame / test / mixer_test.py

Diff from to

File test/mixer_test.py

     from test.test_utils import test_not_implemented, unittest
 import pygame
 from pygame import mixer
+from pygame.compat import xrange_
 
 import os
 
                 for c in CHANNELS:
                     configs.append ((f,s,c))
 
-        print configs
+        print (configs)
     
 
         for init_conf in configs:
-            print init_conf
+            print (init_conf)
             f,s,c = init_conf
             if (f,s) == (22050,16):continue
             mixer.init(f,s,c)
     def test_set_num_channels(self):
         mixer.init()
 
-        for i in xrange(1, mixer.get_num_channels() + 1):
+        for i in xrange_(1, mixer.get_num_channels() + 1):
             mixer.set_num_channels(i)
             self.assert_(mixer.get_num_channels() == i)