summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-11-26 14:13:09 -0200
committerKali Kaneko <kali@leap.se>2013-11-26 14:13:09 -0200
commit4ca43c0ea751231a1f59702af9e347541faa859b (patch)
tree609ea2fe513e4b700c6fa26d3cff42b05ec929ea
parenta9dc083c7ddf0181e5124bbae170c4ac9f752738 (diff)
do not compare to True as per pep8 recommendations
-rw-r--r--src/leap/bitmask/services/eip/linuxvpnlauncher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/services/eip/linuxvpnlauncher.py b/src/leap/bitmask/services/eip/linuxvpnlauncher.py
index 73a0a948..d24e7ae7 100644
--- a/src/leap/bitmask/services/eip/linuxvpnlauncher.py
+++ b/src/leap/bitmask/services/eip/linuxvpnlauncher.py
@@ -77,7 +77,7 @@ def _try_to_launch_agent():
Tries to launch a polkit daemon.
"""
env = None
- if flags.STANDALONE is True:
+ if flags.STANDALONE:
env = {"PYTHONPATH": os.path.abspath('../../../../lib/')}
try:
# We need to quote the command because subprocess call
@@ -158,7 +158,7 @@ class LinuxVPNLauncher(VPNLauncher):
# we use `super` in order to send the class to use
missing = super(LinuxVPNLauncher, kls).missing_other_files()
- if flags.STANDALONE is True:
+ if flags.STANDALONE:
polkit_file = LinuxPolicyChecker.get_polkit_path()
if polkit_file not in missing:
if privilege_policies.is_policy_outdated(kls.OPENVPN_BIN_PATH):