Commits

Anonymous committed 98e422d

Fixed sdl.cdrom example for Python 3.x

  • Participants
  • Parent commits 1b0ea0c
  • Branches pgreloaded

Comments (0)

Files changed (1)

File examples/sdl/cdrom.py

 def run ():
     cdrom.init ()
     print ("Number of CDROM drives found: %d" % cdrom.num_drives ())
-    for index in xrange (cdrom.num_drives ()):
+    for index in range (cdrom.num_drives ()):
         # Loop over all drives to get one with a CD inside
         cd = cdrom.CD (index)
         print ("CD system name: %s" % cd.name)