Skip to content

Commit 8314997

Browse files
author
svn-role
committed
Merge r1931266 from trunk:
* r1931266 In Python 3, hashlib input data must be byte strings, not Unicode. Justification: Allow testing with davautocheck with SSL Votes: +0: hartmannathan +1: jun66j5, brane, dsahlberg git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.15.x@1933232 13f79535-47bb-0310-9956-ffa450edef68
1 parent 575f712 commit 8314997

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

STATUS

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,3 @@ Veto-blocked changes:
3939

4040
Approved changes:
4141
=================
42-
43-
* r1931266
44-
In Python 3, hashlib input data must be byte strings, not Unicode.
45-
Justification:
46-
Allow testing with davautocheck with SSL
47-
Votes:
48-
+0: hartmannathan
49-
+1: jun66j5, brane, dsahlberg

subversion/tests/cmdline/svntest/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def trust_ssl_cert(cfgdir, ssl_cert, ssl_url):
784784
ssl_dir = os.path.join(cfgdir, 'auth', 'svn.ssl.server')
785785
if not os.path.isdir(ssl_dir):
786786
os.makedirs(ssl_dir)
787-
md5_name = hashlib.md5(netloc_url).hexdigest()
787+
md5_name = hashlib.md5(netloc_url.encode()).hexdigest()
788788
md5_file = os.path.join(ssl_dir, md5_name)
789789
md5_file_contents = """K 10
790790
ascii_cert

0 commit comments

Comments
 (0)