diff options
author | MaZderMind <git@mazdermind.de> | 2016-09-26 20:42:07 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2016-09-26 20:42:07 +0200 |
commit | 6e846c7081e242213cd70ceacfcff319e221942c (patch) | |
tree | 9d037e9272e65aea06c74775b2af1eae2f50a46e /example-scripts/control-server | |
parent | fbcbc3743e9179738244a96be54aa588e44314cb (diff) | |
parent | 1972da7f6aa60d3cb3b68808d0381e37898665f3 (diff) |
Merge branch 'pep8'
Diffstat (limited to 'example-scripts/control-server')
-rwxr-xr-x | example-scripts/control-server/generate-cut-list.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/example-scripts/control-server/generate-cut-list.py b/example-scripts/control-server/generate-cut-list.py index 959ab58..394865b 100755 --- a/example-scripts/control-server/generate-cut-list.py +++ b/example-scripts/control-server/generate-cut-list.py @@ -6,16 +6,16 @@ import sys host = 'localhost' port = 9999 -conn = socket.create_connection( (host, port) ) +conn = socket.create_connection((host, port)) fd = conn.makefile('rw') for line in fd: - words = line.rstrip('\n').split(' ') + words = line.rstrip('\n').split(' ') - signal = words[0] - args = words[1:] + signal = words[0] + args = words[1:] - if signal == 'message' and args[0] == 'cut': - ts = datetime.datetime.now().strftime("%Y-%m-%d/%H_%M_%S") - print(ts) - sys.stdout.flush() + if signal == 'message' and args[0] == 'cut': + ts = datetime.datetime.now().strftime("%Y-%m-%d/%H_%M_%S") + print(ts) + sys.stdout.flush() |