Date: Fri, 25 Mar 2022 13:50:57 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 9b17eb62a180 - main - security/py-tlslite: Fix build with setuptools 58.0.0+ Message-ID: <202203251350.22PDovYQ037638@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=9b17eb62a1804d9e04fa41e3cb53fb1088da1c75 commit 9b17eb62a1804d9e04fa41e3cb53fb1088da1c75 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-25 13:34:14 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-25 13:38:21 +0000 security/py-tlslite: Fix build with setuptools 58.0.0+ async is a reserved keyword since Python 3.7. Therefore, I change async to asynchronous to fix SyntaxError. With hat: python --- security/py-tlslite/files/patch-async | 89 +++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/security/py-tlslite/files/patch-async b/security/py-tlslite/files/patch-async new file mode 100644 index 000000000000..6a472d67dfab --- /dev/null +++ b/security/py-tlslite/files/patch-async @@ -0,0 +1,89 @@ +--- tlslite/tlsconnection.py.orig 2015-08-04 00:11:09 UTC ++++ tlslite/tlsconnection.py +@@ -68,7 +68,7 @@ class TLSConnection(TLSRecordLayer): + + def handshakeClientAnonymous(self, session=None, settings=None, + checker=None, serverName="", +- async=False): ++ asynchronous=False): + """Perform an anonymous handshake in the role of client. + + This function performs an SSL or TLS handshake using an +@@ -102,8 +102,8 @@ class TLSConnection(TLSRecordLayer): + @type serverName: string + @param serverName: The ServerNameIndication TLS Extension. + +- @type async: bool +- @param async: If False, this function will block until the ++ @type asynchronous: bool ++ @param asynchronous: If False, this function will block until the + handshake is completed. If True, this function will return a + generator. Successive invocations of the generator will + return 0 if it is waiting to read from the socket, 1 if it is +@@ -126,7 +126,7 @@ class TLSConnection(TLSRecordLayer): + settings=settings, + checker=checker, + serverName=serverName) +- if async: ++ if asynchronous: + return handshaker + for result in handshaker: + pass +@@ -134,7 +134,7 @@ class TLSConnection(TLSRecordLayer): + def handshakeClientSRP(self, username, password, session=None, + settings=None, checker=None, + reqTack=True, serverName="", +- async=False): ++ asynchronous=False): + """Perform an SRP handshake in the role of client. + + This function performs a TLS/SRP handshake. SRP mutually +@@ -179,8 +179,8 @@ class TLSConnection(TLSRecordLayer): + @type serverName: string + @param serverName: The ServerNameIndication TLS Extension. + +- @type async: bool +- @param async: If False, this function will block until the ++ @type asynchronous: bool ++ @param asynchronous: If False, this function will block until the + handshake is completed. If True, this function will return a + generator. Successive invocations of the generator will + return 0 if it is waiting to read from the socket, 1 if it is +@@ -208,7 +208,7 @@ class TLSConnection(TLSRecordLayer): + # + # If 'async' is True, the generator is returned to the caller, + # otherwise it is executed to completion here. +- if async: ++ if asynchronous: + return handshaker + for result in handshaker: + pass +@@ -216,7 +216,7 @@ class TLSConnection(TLSRecordLayer): + def handshakeClientCert(self, certChain=None, privateKey=None, + session=None, settings=None, checker=None, + nextProtos=None, reqTack=True, serverName="", +- async=False): ++ asynchronous=False): + """Perform a certificate-based handshake in the role of client. + + This function performs an SSL or TLS handshake. The server +@@ -273,8 +273,8 @@ class TLSConnection(TLSRecordLayer): + @type serverName: string + @param serverName: The ServerNameIndication TLS Extension. + +- @type async: bool +- @param async: If False, this function will block until the ++ @type asynchronous: bool ++ @param asynchronous: If False, this function will block until the + handshake is completed. If True, this function will return a + generator. Successive invocations of the generator will + return 0 if it is waiting to read from the socket, 1 if it is +@@ -303,7 +303,7 @@ class TLSConnection(TLSRecordLayer): + # + # If 'async' is True, the generator is returned to the caller, + # otherwise it is executed to completion here. +- if async: ++ if asynchronous: + return handshaker + for result in handshaker: + pass
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203251350.22PDovYQ037638>