summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-04-22 13:44:48 (GMT)
committerGuido van Rossum <guido@python.org>1992-04-22 13:44:48 (GMT)
commitdee5d8eb04182196dafb06befbd5e6e53b27f906 (patch)
treee432ce79a664fa57049c578af759f6b799fd2835 /Lib
parent60c225c27c46c71e27d5a773e4a78923edd86489 (diff)
downloadcpython-dee5d8eb04182196dafb06befbd5e6e53b27f906.zip
cpython-dee5d8eb04182196dafb06befbd5e6e53b27f906.tar.gz
cpython-dee5d8eb04182196dafb06befbd5e6e53b27f906.tar.bz2
The getstatus() method of a Readcd instance always calls
self.player.getstatus().
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/irix5/readcd.py9
-rwxr-xr-xLib/plat-irix5/readcd.py9
2 files changed, 4 insertions, 14 deletions
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 @@ 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:
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 @@ 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: