diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-04-03 08:09:34 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-04-03 08:09:34 +0200 |
commit | e86c287d14675ea35236e1685880c7bc55353d0f (patch) | |
tree | 5477820389a55be96798daf7d0b66680c7fa2fe9 /source | |
parent | Changed the message whe BeautifulSoup fails to sanitize the description of th... (diff) | |
download | newspipe-e86c287d14675ea35236e1685880c7bc55353d0f.tar.gz newspipe-e86c287d14675ea35236e1685880c7bc55353d0f.tar.bz2 newspipe-e86c287d14675ea35236e1685880c7bc55353d0f.zip |
Removed some useless regular expression.
Diffstat (limited to 'source')
-rwxr-xr-x | source/pyAggr3g470r.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index b12039d4..79181d68 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -216,14 +216,10 @@ class pyAggr3g470r(object): description = utils.clear_string(article["article_content"]) else: description = article["article_content"] - if description: - p = re.compile(r'<code><') - q = re.compile(r'></code>') - description = p.sub('<code><', description) - description = q.sub('></code>', description) - description = description + "\n<br /><br /><br />" + if description != "": + description += "\n<br />\n" else: - description += "No description available.\n<br /><br /><br />" + description = "<p>No description available.</p>\n<br />\n" """ # Generation of the QR Code for the current article try: |