The getstatus() method of a Readcd instance always calls
self.player.getstatus().
diff --git a/Lib/irix5/readcd.py b/Lib/irix5/readcd.py
index 11ac87b..68e1b4d 100755
--- a/Lib/irix5/readcd.py
+++ b/Lib/irix5/readcd.py
@@ -166,13 +166,8 @@
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:
diff --git a/Lib/plat-irix5/readcd.py b/Lib/plat-irix5/readcd.py
index 11ac87b..68e1b4d 100755
--- a/Lib/plat-irix5/readcd.py
+++ b/Lib/plat-irix5/readcd.py
@@ -166,13 +166,8 @@
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: