aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-06-01 09:40:38 +0200
committercedricbonhomme <devnull@localhost>2011-06-01 09:40:38 +0200
commit74a77378743564072129a656fb0cbf869937bc81 (patch)
tree7c373b89b098637ae2f7c3c02f6ffc7d46bfd9c2 /utils.py
parentMinor improvement: HTML purification of articles description with BeautifulSo... (diff)
downloadnewspipe-74a77378743564072129a656fb0cbf869937bc81.tar.gz
newspipe-74a77378743564072129a656fb0cbf869937bc81.tar.bz2
newspipe-74a77378743564072129a656fb0cbf869937bc81.zip
Removed useless code in utils.py. Improvement of the CSStoopTip description.
Diffstat (limited to 'utils.py')
-rwxr-xr-xutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index e5fc455d..5587ce0e 100755
--- a/utils.py
+++ b/utils.py
@@ -103,7 +103,7 @@ def clear_string(data):
"""
p = re.compile(r'<[^<]*?/?>') # HTML tags
q = re.compile(r'\s') # consecutive white spaces
- return p.sub('', q.sub(' ', data.replace('', '')))
+ return p.sub('', q.sub(' ', data))
def unescape(text):
"""
bgstack15