mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Use __init__ instead of init.
Also use CDDB_PATH and CDDB_WRITE_DIR environment variables in cddb.py.
This commit is contained in:
parent
e65cce5eec
commit
b2e358d433
8 changed files with 28 additions and 26 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue