added EOF tag
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user