Skip to content

Commit

Permalink
fix comment and flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jul 8, 2017
1 parent f0508e0 commit 5d5e7a3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/cryptography/hazmat/bindings/openssl/_conditional.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

from __future__ import absolute_import, division, print_function

# This is a mapping of {condition: names-dependent-on-that-condition} so we can
# loop over them and delete unsupported names at runtime. It will be removed
# when cffi supports #if in cdef.

def Cryptography_HAS_CMS():
return [
Expand Down Expand Up @@ -207,6 +204,7 @@ def Cryptography_HAS_DTLS():
"DTLSv1_handle_timeout",
]


def Cryptography_HAS_GENERIC_DTLS_METHOD():
return [
"DTLS_method",
Expand Down Expand Up @@ -260,6 +258,11 @@ def Cryptography_HAS_EVP_PKEY_get_set_tls_encodedpoint():
]


# This is a mapping of
# {condition: function-returning-names-dependent-on-that-condition} so we can
# loop over them and delete unsupported names at runtime. It will be removed
# when cffi supports #if in cdef. We use functions instead of just a dict of
# lists so we can use coverage to measure which are used.
CONDITIONAL_NAMES = {
"Cryptography_HAS_CMS": Cryptography_HAS_CMS,
"Cryptography_HAS_EC2M": Cryptography_HAS_EC2M,
Expand Down

0 comments on commit 5d5e7a3

Please sign in to comment.