From e4880e6768cf7c2635734a2082ab62d3a416d3ce Mon Sep 17 00:00:00 2001 From: Ayrx Date: Thu, 6 Mar 2014 20:59:04 +0800 Subject: Fix drop in coverage levels by removing branches --- cryptography/hazmat/bindings/commoncrypto/binding.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/cryptography/hazmat/bindings/commoncrypto/binding.py b/cryptography/hazmat/bindings/commoncrypto/binding.py index 07d9cc6d..e14b8ca3 100644 --- a/cryptography/hazmat/bindings/commoncrypto/binding.py +++ b/cryptography/hazmat/bindings/commoncrypto/binding.py @@ -13,7 +13,6 @@ from __future__ import absolute_import, division, print_function -import sys import platform from pkg_resources import parse_version @@ -49,13 +48,5 @@ class Binding(object): @classmethod def is_available(cls): - if sys.platform == "darwin": - version = parse_version(platform.mac_ver()[0]) - if version < parse_version("10.8"): - return False - - else: - return True - - else: - return False + version = parse_version(platform.mac_ver()[0]) + return version >= parse_version("10.8") -- cgit v1.2.3