use del
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 27 Apr 2006 20:33:34 +0000 (20:33 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 27 Apr 2006 20:33:34 +0000 (20:33 +0000)
lib/python/Components/MediaPlayer.py

index 31406e49ca258be0a8820a4ec03fa2d76030340e..70a1dbbdd18ba90125ed0a448588d3e1708f35c9 100644 (file)
@@ -61,7 +61,7 @@ class PlayList(HTMLComponent, GUIComponent, MenuList):
                self.oldCurrPlaying = -1
        
        def clear(self):
-               self.list = []
+               del self.list[:]
                self.l.setList(self.list)
                self.currPlaying = 0
                self.oldCurrPlaying = -1