mercurial/sslutil.py
branchstable
changeset 46786 52528570312e
parent 46785 521ac0d7047f
child 46819 d4ba4d51f85f
--- a/mercurial/sslutil.py	Sat Mar 13 00:38:59 2021 -0500
+++ b/mercurial/sslutil.py	Sat Mar 13 00:40:46 2021 -0500
@@ -543,7 +543,9 @@
     # Use the list of more secure ciphers if found in the ssl module.
     if util.safehasattr(ssl, b'_RESTRICTED_SERVER_CIPHERS'):
         sslcontext.options |= getattr(ssl, 'OP_CIPHER_SERVER_PREFERENCE', 0)
+        # pytype: disable=module-attr
         sslcontext.set_ciphers(ssl._RESTRICTED_SERVER_CIPHERS)
+        # pytype: enable=module-attr
 
     if requireclientcert:
         sslcontext.verify_mode = ssl.CERT_REQUIRED