From 9e5cf970d11c05f164f771bcaa19abaa5f3138b7 Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Wed, 26 Sep 2007 14:37:46 +0000 Subject: [PATCH] Remove unneeded usage of boundFunction --- simplerss/src/RSSPoller.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/simplerss/src/RSSPoller.py b/simplerss/src/RSSPoller.py index 599c4dc9..030c5970 100644 --- a/simplerss/src/RSSPoller.py +++ b/simplerss/src/RSSPoller.py @@ -51,10 +51,6 @@ class RSSPoller: except: pass - # Wrap boundFunction over real function - def _gotSinglePage(self, id, callback, errorback, data): - self._gotPage(data, id, callback, errorback) - def error(self, error = ""): if not self.session: print "[SimpleRSS] error polling" @@ -117,8 +113,7 @@ class RSSPoller: self.next_feed() def singlePoll(self, id, callback = False, errorback = None): - from Tools.BoundFunction import boundFunction - getPage(self.feeds[id].uri).addCallback(callback=boundFunction(self._gotSinglePage, id, callback, errorback)).addErrback(errorback) + getPage(self.feeds[id].uri).addCallback(self._gotPage, id, callback, errorback).addErrback(errorback) def poll(self): # Reloading, reschedule -- 2.20.1