[totem] iplayer: Disable some useless pylint warnings



commit 0d09a71992f3b87f37137798c86a050a0217ff29
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Dec 21 10:33:22 2011 +0000

    iplayer: Disable some useless pylint warnings

 src/plugins/iplayer/iplayer2.py   |   11 +++++++----
 src/plugins/iplayer/listparser.py |    7 ++++---
 2 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/plugins/iplayer/iplayer2.py b/src/plugins/iplayer/iplayer2.py
index c59aada..2b4cbdc 100644
--- a/src/plugins/iplayer/iplayer2.py
+++ b/src/plugins/iplayer/iplayer2.py
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 # -*- coding: utf-8 -*-
+# pylint: disable-msg=C0302
 
 # Python libs
 import re, os
@@ -309,7 +310,7 @@ def parse_entry_id (entry_id):
         return None
     return matches[0]
 
-class Media (object):
+class Media (object): # pylint: disable-msg=R0902
     def __init__ (self, item, media_node):
         self.item = item
         self.href = None
@@ -415,7 +416,7 @@ class Media (object):
     def programme (self):
         return self.item.programme
 
-class Item (object):
+class Item (object): # pylint: disable-msg=R0902
     """
     Represents an iPlayer programme item. Most programmes consist of 2 such
     items, (1) the ident, and (2) the actual programme. The item specifies the
@@ -761,8 +762,9 @@ class ProgrammeSimple (object):
     items = property (get_items)
 
 
-class Feed (object):
-    def __init__ (self, tvradio = None, channel = None, category = None,
+class Feed (object): # pylint: disable-msg=R0921
+    def __init__ (self, tvradio = None, # pylint: disable-msg=R0913
+                  channel = None, category = None,
                   subcategory = None, atoz = None, searchterm = None):
         """
         Creates a feed for the specified channel/category/whatever.
@@ -898,6 +900,7 @@ class Feed (object):
                     for (ch, _title) in CHANNELS_RADIO_LIST]
         return None
 
+    # This causes pylint message R0913 on the class.
     def subcategories (self):
         raise NotImplementedError ('Sub-categories not yet supported')
 
diff --git a/src/plugins/iplayer/listparser.py b/src/plugins/iplayer/listparser.py
index 80a5de8..e9a4338 100644
--- a/src/plugins/iplayer/listparser.py
+++ b/src/plugins/iplayer/listparser.py
@@ -10,8 +10,9 @@ def xmlunescape (data):
     data = data.replace ('&lt;', '<')
     return data
 
-class ListEntry (object):
-    def __init__ (self, title = None, identifier = None, updated = None,
+class ListEntry (object): # pylint: disable-msg=R0903
+    def __init__ (self, title = None, # pylint: disable-msg=R0913
+                  identifier = None, updated = None,
                   summary = None, categories = None):
         self.title = title
         self.identifier = identifier
@@ -19,7 +20,7 @@ class ListEntry (object):
         self.summary = summary
         self.categories = categories
 
-class ListEntries (object):
+class ListEntries (object): # pylint: disable-msg=R0903
     def __init__ (self):
         self.entries = []
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]