diff options
author | Kali Kaneko <kali@leap.se> | 2018-03-05 00:42:44 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-03-05 00:42:44 +0100 |
commit | a657c9f7e21d3e335d6419af4fa57dc6ce50d9df (patch) | |
tree | a9349dfac45942471c638f7f43d84db352ac8a66 /src/leap/bitmask/vpn/helpers | |
parent | e869ebc26e1d070dc6d2888223ac85f115bb5eb1 (diff) |
[style] pep8
Diffstat (limited to 'src/leap/bitmask/vpn/helpers')
-rw-r--r-- | src/leap/bitmask/vpn/helpers/__init__.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/leap/bitmask/vpn/helpers/__init__.py b/src/leap/bitmask/vpn/helpers/__init__.py index 9641e035..54b29cb0 100644 --- a/src/leap/bitmask/vpn/helpers/__init__.py +++ b/src/leap/bitmask/vpn/helpers/__init__.py @@ -20,7 +20,8 @@ if IS_LINUX: from leap.bitmask.vpn.constants import BITMASK_ROOT_SYSTEM from leap.bitmask.vpn.constants import BITMASK_ROOT_LOCAL - from leap.bitmask.vpn.constants import OPENVPN_SYSTEM, OPENVPN_LOCAL, OPENVPN_SNAP + from leap.bitmask.vpn.constants import OPENVPN_SYSTEM, OPENVPN_LOCAL + from leap.bitmask.vpn.constants import OPENVPN_SNAP from leap.bitmask.vpn.constants import POLKIT_SYSTEM, POLKIT_LOCAL from leap.bitmask.vpn.privilege import is_pkexec_in_system from leap.bitmask.vpn.privilege import LinuxPolicyChecker @@ -95,11 +96,13 @@ if IS_LINUX: helper_path_digest = digest(helper_path) if (_exists_and_can_read(BITMASK_ROOT_SYSTEM) and helper_path_digest == digest(BITMASK_ROOT_SYSTEM)): - log.debug('Global bitmask-root: %s' % os.path.isfile(BITMASK_ROOT_SYSTEM)) + log.debug('Global bitmask-root: %s' + % os.path.isfile(BITMASK_ROOT_SYSTEM)) return True if (_exists_and_can_read(BITMASK_ROOT_LOCAL) and helper_path_digest == digest(BITMASK_ROOT_LOCAL)): - log.debug('Local bitmask-root: %s' % os.path.isfile(BITMASK_ROOT_LOCAL)) + log.debug('Local bitmask-root: %s' + % os.path.isfile(BITMASK_ROOT_LOCAL)) return True log.debug('No valid bitmask-root found') |