diff options
author | kali <kali@leap.se> | 2013-04-09 20:03:54 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2013-04-09 20:12:56 +0900 |
commit | a0497a6e1a4ef556e55299c967441e237a5e7bce (patch) | |
tree | 0d1ed916275ab941689a0f5c4ed5f3d801f24957 /src/leap | |
parent | 466ccbafb38cf8fd767ed2b88d93c547a4eca9a2 (diff) |
remove lambdas
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/platform_init/initializers.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/platform_init/initializers.py b/src/leap/platform_init/initializers.py index 3cb19fc6..049d32a2 100644 --- a/src/leap/platform_init/initializers.py +++ b/src/leap/platform_init/initializers.py @@ -117,13 +117,14 @@ def _darwin_has_tun_kext(): """ # XXX we should be smarter here and use kextstats output. - has_kext = lambda: os.path.isdir("/System/Library/Extensions/tun.kext") - has_startup = lambda: os.path.isdir("/System/Library/StartupItems/tun") - has_tun_and_startup = has_kext() and has_startup() + has_kext = os.path.isdir("/System/Library/Extensions/tun.kext") + has_startup = os.path.isdir("/System/Library/StartupItems/tun") + has_tun_and_startup = has_kext and has_startup logger.debug('platform initializer check: has tun_and_startup = %s' % (has_tun_and_startup,)) return has_tun_and_startup + def DarwinInitializer(): """ Raises a dialog in case that the osx tuntap driver has not been found |