summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-04-18 16:22:02 -0400
committerKali Kaneko <kali@leap.se>2016-04-18 16:33:26 -0400
commit9c3a713ff33c87af03b31ec9ad018a6ca3dfbb97 (patch)
tree96ba8c39fcb16e785a4077082e04e3a7a2c14906 /src/leap/bitmask
parente709476718d7a0aa4e80663a6a55b2931d221796 (diff)
[style] autopep8
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/app.py1
-rw-r--r--src/leap/bitmask/services/eip/darwinvpnlauncher.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py
index 31dba157..e5189e23 100644
--- a/src/leap/bitmask/app.py
+++ b/src/leap/bitmask/app.py
@@ -76,6 +76,7 @@ codecs.register(lambda name: codecs.lookup('utf-8')
if name == 'cp65001' else None)
import psutil
+
def qt_hack_ubuntu():
"""Export two env vars to avoid gui corruption, see #8028"""
os.environ['QT_GRAPHICSSYSTEM'] = 'native'
diff --git a/src/leap/bitmask/services/eip/darwinvpnlauncher.py b/src/leap/bitmask/services/eip/darwinvpnlauncher.py
index 94161192..e697b118 100644
--- a/src/leap/bitmask/services/eip/darwinvpnlauncher.py
+++ b/src/leap/bitmask/services/eip/darwinvpnlauncher.py
@@ -112,7 +112,8 @@ class DarwinVPNLauncher(VPNLauncher):
:returns: True if kext is loaded, False otherwise.
:rtype: bool
"""
- loaded = bool(commands.getoutput('kextstat | grep "net.sf.tuntaposx.tun"'))
+ loaded = bool(commands.getoutput(
+ 'kextstat | grep "net.sf.tuntaposx.tun"'))
if not loaded:
logger.error("tuntaposx extension not loaded!")
return loaded