Unverified Commit 9c3a713f authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[style] autopep8

parent e7094767
......@@ -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'
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment