[vlc-commits] Remove MediaList __len__ and __getitem__ overrides
Geoff Salmon
git at videolan.org
Tue Sep 13 17:24:04 CEST 2011
vlc/python | branch: master | Geoff Salmon <geoff.salmon at gmail.com> | Sun Aug 14 11:52:20 2011 -0400| [07d22c05346177a0f7618b7358cc32d3618906ce] | committer: Olivier Aubert
Remove MediaList __len__ and __getitem__ overrides
The __len__ and __getitem__ methods are already being generated so we don't
need to override them.
Signed-off-by: Olivier Aubert <olivier.aubert at liris.cnrs.fr>
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=07d22c05346177a0f7618b7358cc32d3618906ce
---
override.py | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/override.py b/override.py
index 6a71254..2d278e4 100644
--- a/override.py
+++ b/override.py
@@ -183,12 +183,6 @@ class MediaList:
mrl = (self.get_instance() or get_default_instance()).media_new(mrl)
return libvlc_media_list_add_media(self, mrl)
- def __len__(self):
- return self.count()
-
- def __getitem__(self, i):
- return self.item_at_index(i)
-
class MediaPlayer: #PYCHOK expected (comment is lost)
"""Create a new MediaPlayer instance.
More information about the vlc-commits
mailing list