Kaydet (Commit) dee5d8eb authored tarafından Guido van Rossum's avatar Guido van Rossum

The getstatus() method of a Readcd instance always calls

self.player.getstatus().
üst 60c225c2
...@@ -166,13 +166,8 @@ class Readcd(): ...@@ -166,13 +166,8 @@ class Readcd():
return result return result
def getstatus(self): def getstatus(self):
if not self.status: self.status = self.player.getstatus()
status = self.player.getstatus() return self.status
if status[0] <> CD.NODISC:
self.status = status
else:
status = self.status
return status
def play(self): def play(self):
if not self.status: if not self.status:
......
...@@ -166,13 +166,8 @@ class Readcd(): ...@@ -166,13 +166,8 @@ class Readcd():
return result return result
def getstatus(self): def getstatus(self):
if not self.status: self.status = self.player.getstatus()
status = self.player.getstatus() return self.status
if status[0] <> CD.NODISC:
self.status = status
else:
status = self.status
return status
def play(self): def play(self):
if not self.status: if not self.status:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment