clean rss.py
This commit is contained in:
parent
bec77841d4
commit
471b05aa82
@ -22,7 +22,7 @@ def line2words(lines, limit):
|
|||||||
l = len(word)
|
l = len(word)
|
||||||
if limit > 0 and (l + char_count > limit):
|
if limit > 0 and (l + char_count > limit):
|
||||||
break_outer_loop = True
|
break_outer_loop = True
|
||||||
break;
|
break
|
||||||
output.append(word)
|
output.append(word)
|
||||||
char_count += l
|
char_count += l
|
||||||
if break_outer_loop:
|
if break_outer_loop:
|
||||||
@ -38,7 +38,7 @@ def line2words(lines, limit):
|
|||||||
# this is similar tot he markup function in microblog
|
# this is similar tot he markup function in microblog
|
||||||
def enrich_msg(lines, is_atom=True):
|
def enrich_msg(lines, is_atom=True):
|
||||||
if not is_atom:
|
if not is_atom:
|
||||||
return string
|
return lines
|
||||||
content = []
|
content = []
|
||||||
parser = My_Html_Parser([])
|
parser = My_Html_Parser([])
|
||||||
for line in lines:
|
for line in lines:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user