aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-03-15 08:12:26 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-03-15 08:12:26 +0100
commit70574bd1132db57adfa610046507a223f3e5fe95 (patch)
tree42a24504447925db287f77054935fcfc586c5314
parentCreation of an index when creating a new collection. (diff)
downloadnewspipe-70574bd1132db57adfa610046507a223f3e5fe95.tar.gz
newspipe-70574bd1132db57adfa610046507a223f3e5fe95.tar.bz2
newspipe-70574bd1132db57adfa610046507a223f3e5fe95.zip
Removed useless variable declaration
-rwxr-xr-xsource/pyAggr3g470r.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index f72729eb..98e011a1 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -578,9 +578,8 @@ class pyAggr3g470r(object):
result = auth.change_username(self.auth.username, new_username)
if result:
self.auth.username = new_username
- message = "<p>Your username has been changed.</p>"
tmpl = lookup.get_template("confirmation.html")
- return tmpl.render(message=message)
+ return tmpl.render(message="<p>Your username has been changed.</p>")
else:
return self.error("<p>Impossible to change the username.</p>")
@@ -593,9 +592,8 @@ class pyAggr3g470r(object):
"""
result = auth.change_password(self.auth.username, new_password)
if result:
- message = "<p>Your password has been changed.</p>"
tmpl = lookup.get_template("confirmation.html")
- return tmpl.render(message=message)
+ return tmpl.render(message="<p>Your password has been changed.</p>")
else:
return self.error("<p>Impossible to change the password.</p>")
bgstack15