From b5f56150d464918bc057c5461935d37371c84451 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 4 Oct 2012 10:15:26 -0400 Subject: [PATCH] Get rid of some tiny helper functions. --- rss2email.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rss2email.py b/rss2email.py index c6b2379..677d6fb 100755 --- a/rss2email.py +++ b/rss2email.py @@ -474,13 +474,6 @@ class TimeLimitedFunction (_threading.Thread): raise TimeoutError(time_limited_function=self) return self.result -def isstr(f): return isinstance(f, type('')) or isinstance(f, type(u'')) -def ishtml(t): return type(t) is type(()) -def contains(a,b): return a.find(b) != -1 -def unu(s): # I / freakin' hate / that unicode - if type(s) is types.UnicodeType: return s.encode('utf-8') - else: return s - ### Parsing Utilities ### def getContent(entry, HTMLOK=0): -- 2.26.2