projects
/
rss2email.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f401553
)
Get rid of some tiny helper functions.
author
W. Trevor King
<wking@tremily.us>
Thu, 4 Oct 2012 14:15:26 +0000
(10:15 -0400)
committer
W. Trevor King
<wking@tremily.us>
Thu, 4 Oct 2012 22:51:18 +0000
(18:51 -0400)
rss2email.py
patch
|
blob
|
history
diff --git
a/rss2email.py
b/rss2email.py
index c6b237984a0c0c7895edebaec81c1c4cbbeda762..677d6fbfca3a251369c97b3836b30d43c549ff52 100755
(executable)
--- 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):