From e86c287d14675ea35236e1685880c7bc55353d0f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 3 Apr 2013 08:09:34 +0200 Subject: Removed some useless regular expression. --- source/pyAggr3g470r.py | 10 +++------- 1 file 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'<') - q = re.compile(r'>') - description = p.sub('<', description) - description = q.sub('>', description) - description = description + "\n


" + if description != "": + description += "\n
\n" else: - description += "No description available.\n


" + description = "

No description available.

\n
\n" """ # Generation of the QR Code for the current article try: -- cgit