Tabs to whspaces in Headphones.py

This commit is contained in:
rembo10
2012-06-19 13:01:21 +05:30
parent a3f6d90f74
commit 15cf36a27a

View File

@@ -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__":