From: W. Trevor King Date: Thu, 4 Oct 2012 14:15:26 +0000 (-0400) Subject: Get rid of some tiny helper functions. X-Git-Tag: v3.0~72^2~44 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5f56150d464918bc057c5461935d37371c84451;p=rss2email.git Get rid of some tiny helper functions. --- 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):