bsc_control.py: style corrections
* replace some tabs indent with spaces * add comment to make sure no new tabs are used for indentation by emacs * remove unnecessary parenthesis Change-Id: Ib79fd4317d40ee4fd87b090b9faf8ebaf4bfca64
This commit is contained in:
parent
688231331b
commit
82caa3e9b7
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
# -*- mode: python-mode; py-indent-tabs-mode: nil -*-
|
||||
|
||||
import sys,os, random
|
||||
from optparse import OptionParser
|
||||
|
@ -117,13 +118,13 @@ if __name__ == '__main__':
|
|||
print "Got message:", answer
|
||||
|
||||
if options.monitor:
|
||||
while (True):
|
||||
while True:
|
||||
data = sock.recv(1024)
|
||||
if len(data) == 0:
|
||||
print "Connection is gone."
|
||||
break
|
||||
|
||||
while (len(data)>0):
|
||||
while len(data) > 0:
|
||||
(answer, data) = remove_ipa_ctrl_header(data)
|
||||
print "Got message:", answer
|
||||
|
||||
|
|
Loading…
Reference in New Issue