summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2022-10-21 23:02:28 -0400
committerGitHub <noreply@github.com>2022-10-21 22:02:28 -0500
commitdc02ccca4fbe2ef62ff5f2432a5d4d51df2d8879 (patch)
treeac2b636c4c403f30b5fc28f1348c5a643d576f6e
parent6a8e88d5140cb77e6c05fa89998bab94eba2f060 (diff)
downloadpyopenssl-dc02ccca4fbe2ef62ff5f2432a5d4d51df2d8879.tar.gz
style cleanups from recent PR (#1159)
don't leave comment out code, and use append rather than += on lists
-rw-r--r--src/OpenSSL/SSL.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py
index c2a49f2..dfbd109 100644
--- a/src/OpenSSL/SSL.py
+++ b/src/OpenSSL/SSL.py
@@ -59,7 +59,6 @@ __all__ = [
"OP_NO_TLSv1",
"OP_NO_TLSv1_1",
"OP_NO_TLSv1_2",
- # "OP_NO_TLSv1_3", conditionally added below
"MODE_RELEASE_BUFFERS",
"OP_SINGLE_DH_USE",
"OP_SINGLE_ECDH_USE",
@@ -84,8 +83,6 @@ __all__ = [
"OP_NO_QUERY_MTU",
"OP_COOKIE_EXCHANGE",
"OP_NO_TICKET",
- # "OP_NO_RENEGOTIATION", conditionally added below
- # "OP_IGNORE_UNEXPECTED_EOF", conditionally added below
"OP_ALL",
"VERIFY_PEER",
"VERIFY_FAIL_IF_NO_PEER_CERT",
@@ -172,7 +169,7 @@ OP_NO_TLSv1_1 = _lib.SSL_OP_NO_TLSv1_1
OP_NO_TLSv1_2 = _lib.SSL_OP_NO_TLSv1_2
try:
OP_NO_TLSv1_3 = _lib.SSL_OP_NO_TLSv1_3
- __all__ += ["OP_NO_TLSv1_3"]
+ __all__.append("OP_NO_TLSv1_3")
except AttributeError:
pass
@@ -209,13 +206,13 @@ OP_NO_TICKET = _lib.SSL_OP_NO_TICKET
try:
OP_NO_RENEGOTIATION = _lib.SSL_OP_NO_RENEGOTIATION
- __all__ += ["OP_NO_RENEGOTIATION"]
+ __all__.append("OP_NO_RENEGOTIATION")
except AttributeError:
pass
try:
OP_IGNORE_UNEXPECTED_EOF = _lib.SSL_OP_IGNORE_UNEXPECTED_EOF
- __all__ += ["OP_IGNORE_UNEXPECTED_EOF"]
+ __all__.append("OP_IGNORE_UNEXPECTED_EOF")
except AttributeError:
pass