Use __init__ instead of init.

Also use CDDB_PATH and CDDB_WRITE_DIR environment variables in cddb.py.
This commit is contained in:
Sjoerd Mullender 1993-11-08 15:10:43 +00:00
parent e65cce5eec
commit b2e358d433
8 changed files with 28 additions and 26 deletions

View file

@ -22,7 +22,7 @@ def _dopnum(self, cb_type, data):
func(arg, cb_type, data)
class Readcd:
def init(self, *arg):
def __init__(self, *arg):
if len(arg) == 0:
self.player = cd.open()
elif len(arg) == 1:
@ -38,7 +38,6 @@ class Readcd:
self.end = 0
self.status = None
self.trackinfo = None
return self
def eject(self):
self.player.eject()