Get rid of some tiny helper functions.
authorW. Trevor King <wking@tremily.us>
Thu, 4 Oct 2012 14:15:26 +0000 (10:15 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 4 Oct 2012 22:51:18 +0000 (18:51 -0400)
rss2email.py

index c6b237984a0c0c7895edebaec81c1c4cbbeda762..677d6fbfca3a251369c97b3836b30d43c549ff52 100755 (executable)
@@ -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):