From 15cf36a27a08af24777d6843d56e311351d66e20 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Tue, 19 Jun 2012 13:01:21 +0530 Subject: [PATCH] Tabs to whspaces in Headphones.py --- Headphones.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Headphones.py b/Headphones.py index 65c7d8fc..e7496c66 100644 --- a/Headphones.py +++ b/Headphones.py @@ -120,19 +120,19 @@ def main(): headphones.start() while True: - if not headphones.SIGNAL: - time.sleep(1) - else: - logger.info('Received signal: ' + headphones.SIGNAL) - if headphones.SIGNAL == 'shutdown': - headphones.shutdown() - elif headphones.SIGNAL == 'restart': - headphones.shutdown(restart=True) - else: - headphones.shutdown(restart=True, update=True) - - headphones.SIGNAL = None - + if not headphones.SIGNAL: + time.sleep(1) + else: + logger.info('Received signal: ' + headphones.SIGNAL) + if headphones.SIGNAL == 'shutdown': + headphones.shutdown() + elif headphones.SIGNAL == 'restart': + headphones.shutdown(restart=True) + else: + headphones.shutdown(restart=True, update=True) + + headphones.SIGNAL = None + return if __name__ == "__main__":