diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-15 08:12:26 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-15 08:12:26 +0100 |
commit | 70574bd1132db57adfa610046507a223f3e5fe95 (patch) | |
tree | 42a24504447925db287f77054935fcfc586c5314 | |
parent | Creation of an index when creating a new collection. (diff) | |
download | newspipe-70574bd1132db57adfa610046507a223f3e5fe95.tar.gz newspipe-70574bd1132db57adfa610046507a223f3e5fe95.tar.bz2 newspipe-70574bd1132db57adfa610046507a223f3e5fe95.zip |
Removed useless variable declaration
-rwxr-xr-x | source/pyAggr3g470r.py | 6 |
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>") |