mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
The getstatus() method of a Readcd instance always calls
self.player.getstatus().
This commit is contained in:
parent
60c225c27c
commit
dee5d8eb04
2 changed files with 4 additions and 14 deletions
|
@ -166,13 +166,8 @@ class Readcd():
|
|||
return result
|
||||
|
||||
def getstatus(self):
|
||||
if not self.status:
|
||||
status = self.player.getstatus()
|
||||
if status[0] <> CD.NODISC:
|
||||
self.status = status
|
||||
else:
|
||||
status = self.status
|
||||
return status
|
||||
self.status = self.player.getstatus()
|
||||
return self.status
|
||||
|
||||
def play(self):
|
||||
if not self.status:
|
||||
|
|
|
@ -166,13 +166,8 @@ class Readcd():
|
|||
return result
|
||||
|
||||
def getstatus(self):
|
||||
if not self.status:
|
||||
status = self.player.getstatus()
|
||||
if status[0] <> CD.NODISC:
|
||||
self.status = status
|
||||
else:
|
||||
status = self.status
|
||||
return status
|
||||
self.status = self.player.getstatus()
|
||||
return self.status
|
||||
|
||||
def play(self):
|
||||
if not self.status:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue