summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-01-04 18:38:01 +0100
committerKali Kaneko <kali@leap.se>2018-01-06 19:57:56 +0100
commit2b5b79b114423f8d68c992d1bd0bb251e2dfba2b (patch)
treee18fb30a115cf5358b58727e1e047833ed81cd26 /src/leap/bitmask/gui
parent501379ee09c3510d1737d6292a2dd5732c19dfef (diff)
[style] pep8
Diffstat (limited to 'src/leap/bitmask/gui')
-rw-r--r--src/leap/bitmask/gui/app.py1
-rw-r--r--src/leap/bitmask/gui/app2.py1
-rw-r--r--src/leap/bitmask/gui/housekeeping.py4
3 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/bitmask/gui/app.py b/src/leap/bitmask/gui/app.py
index 2033fc6d..2988b15c 100644
--- a/src/leap/bitmask/gui/app.py
+++ b/src/leap/bitmask/gui/app.py
@@ -253,6 +253,5 @@ def start_app():
launch_gui()
-
if __name__ == "__main__":
start_app()
diff --git a/src/leap/bitmask/gui/app2.py b/src/leap/bitmask/gui/app2.py
index 3e83b435..f8f62938 100644
--- a/src/leap/bitmask/gui/app2.py
+++ b/src/leap/bitmask/gui/app2.py
@@ -120,7 +120,6 @@ class BrowserWindow(object):
print('[bitmask] shutting down gui')
-
def launch_gui():
global bitmaskd
diff --git a/src/leap/bitmask/gui/housekeeping.py b/src/leap/bitmask/gui/housekeeping.py
index 7069adba..5c1d8079 100644
--- a/src/leap/bitmask/gui/housekeeping.py
+++ b/src/leap/bitmask/gui/housekeeping.py
@@ -8,6 +8,7 @@ from leap.common.config import get_path_prefix
class NoAuthTokenError(Exception):
pass
+
def get_authenticated_url():
url = "http://localhost:7070"
path = os.path.join(get_path_prefix(), 'leap', 'authtoken')
@@ -26,6 +27,7 @@ def get_authenticated_url():
url += '#' + token
return url
+
def terminate(pid):
if os.path.isfile(pid):
with open(pid) as f:
@@ -33,6 +35,7 @@ def terminate(pid):
print('[bitmask] terminating bitmaskd...')
os.kill(pidno, signal.SIGTERM)
+
def reset_authtoken():
prev_auth = os.path.join(get_path_prefix(), 'leap', 'authtoken')
try:
@@ -40,6 +43,7 @@ def reset_authtoken():
except OSError:
pass
+
def cleanup():
print('[bitmask] cleaning up files')
base = os.path.join(get_path_prefix(), 'leap')