Skip to content

Commit

Permalink
style cleanups from recent PR (#1159)
Browse files Browse the repository at this point in the history
don't leave comment out code, and use append rather than += on lists
  • Loading branch information
alex authored Oct 22, 2022
1 parent 6a8e88d commit dc02ccc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/OpenSSL/SSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"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",
Expand All @@ -84,8 +83,6 @@
"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",
Expand Down Expand Up @@ -172,7 +169,7 @@
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

Expand Down Expand Up @@ -209,13 +206,13 @@

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

Expand Down

0 comments on commit dc02ccc

Please sign in to comment.