gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-bank] branch master updated: fix spelling issues


From: gnunet
Subject: [taler-bank] branch master updated: fix spelling issues
Date: Thu, 22 Oct 2020 11:38:30 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 0f18179  fix spelling issues
0f18179 is described below

commit 0f1817917f627658c11632c5eb88576ce6dcd17f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Oct 22 11:38:28 2020 +0200

    fix spelling issues
---
 README                 |  2 +-
 talerbank/app/views.py | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/README b/README
index d2970e9..b05ce03 100644
--- a/README
+++ b/README
@@ -30,7 +30,7 @@ the following way:
 
 $ make i18n
 
-The follwing command creates *new* languages to be translated.  In
+The following command creates *new* languages to be translated.  In
 particular, it produces the PO file for the language being added.
 
 $ python3 manage.py makemessages -l $LANG
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index e51bfe2..853b6ae 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -228,7 +228,7 @@ def get_session_flag(request, name):
 def get_session_hint(request):
     ret = True, ""
     if "hint" in request.session:
-        ret = request.session["hint"] 
+        ret = request.session["hint"]
         del request.session["hint"]
     return ret
 
@@ -373,12 +373,12 @@ def payto_transfer(request):
 # Helper function that hashes its input.  Usually
 # used to hash the response to the math CAPTCHA.
 #
-# @param ans the plain text answer to hash.
-# @return the hashed version of @a ans.
-def hash_answer(ans):
+# @param answer the plain text answer to hash.
+# @return the hashed version of @a answer.
+def hash_answer(answer):
     hasher = hashlib.new("sha1")
     hasher.update(settings.SECRET_KEY.encode("utf-8"))
-    hasher.update(ans.encode("utf-8"))
+    hasher.update(answer.encode("utf-8"))
     return hasher.hexdigest()
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]