You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ds...@apache.org on 2022/08/22 15:31:48 UTC

svn commit: r1903631 - /subversion/trunk/tools/client-side/store-plaintext-password.py

Author: dsahlberg
Date: Mon Aug 22 15:31:48 2022
New Revision: 1903631

URL: http://svn.apache.org/viewvc?rev=1903631&view=rev
Log:
Follow-up top r1902590, a variable was renamed during development but not everywere

* tools/client-side/store-plaintext-password.py
  (outputHash) s/dict/hash/
  (writeHashFile) s/dict/hash/

Modified:
    subversion/trunk/tools/client-side/store-plaintext-password.py

Modified: subversion/trunk/tools/client-side/store-plaintext-password.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/client-side/store-plaintext-password.py?rev=1903631&r1=1903630&r2=1903631&view=diff
==============================================================================
--- subversion/trunk/tools/client-side/store-plaintext-password.py (original)
+++ subversion/trunk/tools/client-side/store-plaintext-password.py Mon Aug 22 15:31:48 2022
@@ -110,7 +110,7 @@ def outputHash(fd, hash):
     """
     assert 'b' in fd.mode
 
-    for key, val in dict.items():
+    for key, val in hash.items():
         fd.write(b'K ' + bytes(str(len(key)), 'utf-8') + b'\n')
         fd.write(key + b'\n')
         fd.write(b'V ' + bytes(str(len(val)), 'utf-8') + b'\n')
@@ -125,7 +125,7 @@ def writeHashFile(filename, hash):
     tmpFilename = filename + '.tmp'
     try:
         with open(tmpFilename, 'xb') as fd:
-            outputHash(fd, dict)
+            outputHash(fd, hash)
             os.rename(tmpFilename, filename)
     except FileExistsError:
         print('{}: File {!r} already exist. Is the script already running?'