[totem] plugins: Fix usage of class methods in iPlayer plugin



commit 13f09bd259e241f6d49966845cb5c26766ef430e
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Apr 4 23:18:48 2011 +0100

    plugins: Fix usage of class methods in iPlayer plugin
    
    Helps: bgo#645739

 src/plugins/iplayer/iplayer2.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/iplayer/iplayer2.py b/src/plugins/iplayer/iplayer2.py
index 7db3d14..d9918d2 100644
--- a/src/plugins/iplayer/iplayer2.py
+++ b/src/plugins/iplayer/iplayer2.py
@@ -902,7 +902,7 @@ class Feed (object):
         raise NotImplementedError ('Sub-categories not yet supported')
 
     @classmethod
-    def is_atoz (self, letter):
+    def is_atoz (cls, letter):
         """
         Return False if specified letter is not a valid 'A to Z' directory
         entry. Otherwise returns the directory name.
@@ -963,7 +963,7 @@ class Feed (object):
         return None
 
     @classmethod
-    def read_rss (self, url):
+    def read_rss (cls, url):
         #logging.info ('Read RSS: %s', url)
         if url not in RSS_CACHE:
             #logging.info ('Feed URL not in cache, requesting...')



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