From 98d149f5c424bff4c03bdd2c9abe7f97d4660555 Mon Sep 17 00:00:00 2001 From: "J.M. Dana" Date: Tue, 24 Feb 2015 21:23:39 +0000 Subject: QA modifications --- py3status/modules/bluetooth.py | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'py3status') diff --git a/py3status/modules/bluetooth.py b/py3status/modules/bluetooth.py index 00fdb84..ee33b09 100644 --- a/py3status/modules/bluetooth.py +++ b/py3status/modules/bluetooth.py @@ -12,9 +12,9 @@ Requires: @license GPLv3 """ -from time import time -import subprocess import shlex +import subprocess +from time import time class Py3status: # configuration parameters @@ -22,16 +22,7 @@ class Py3status: color_good = None color_bad = None - def __init__(self): - pass - - def kill(self, i3s_output_list, i3s_config): - pass - - def on_click(self, i3s_output_list, i3s_config, event): - pass - - def get_status(self, i3s_output_list, i3s_config): + def bluetooth(self, i3s_output_list, i3s_config): # The whole command: # hcitool name `hcitool con | sed -n -r 's/.*([0-9A-F:]{17}).*/\\1/p'` @@ -78,5 +69,5 @@ if __name__ == "__main__": } while True: - print(x.get_status([], config)) + print(x.bluetooth([], config)) sleep(1) -- cgit v1.3