From bd5266cbb4768fad55b440af86d8728653fc8062 Mon Sep 17 00:00:00 2001 From: q Date: Sat, 6 Aug 2016 13:44:54 +0300 Subject: [PATCH] added EOF tag --- reporting/srcframes2ans | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reporting/srcframes2ans b/reporting/srcframes2ans index 7c417de..b4521ba 100755 --- a/reporting/srcframes2ans +++ b/reporting/srcframes2ans @@ -227,6 +227,7 @@ Outputs:'''.encode('utf-8') bc=bc() opts=setup_options() f=open_data_file(opts) +endoffile=False if opts.clear: bc.clear() if opts.test_image: @@ -246,6 +247,10 @@ while True: row=row.decode('utf-8').rstrip("\n\r") if row.startswith(NEWIMAGE): break + if row.startswith(ENDOFFILE): + endoffile=True + if endoffile: + break if row.startswith(PAUSE): try: new_value=row[len(PAUSE):].strip()