init -> __init__

This commit is contained in:
Guido van Rossum 1994-10-07 10:25:49 +00:00
parent 50519c6190
commit fc146cb9e0
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ def main():
a.setsampwidth(AL.SAMPLE_16)
a.setnchannels(AL.STEREO)
a.setframerate(AL.RATE_44100)
r = readcd.Readcd().init()
r = readcd.Readcd()
for arg in sys.argv[2:]:
x = eval(arg)
try:

View File

@ -52,10 +52,10 @@ def prstatus(status):
def main():
import sys, readcd, al, AL, CD, cdplayer
verbose = 0
r = readcd.Readcd().init()
r = readcd.Readcd()
prstatus(r.getstatus())
prtrackinfo(r.gettrackinfo())
cdinfo = cdplayer.Cdplayer().init(r.gettrackinfo())
cdinfo = cdplayer.Cdplayer(r.gettrackinfo())
if cdinfo.title <> '':
print 'Title: "' + cdinfo.title + '"'
if cdinfo.artist <> '':