Jython EOFError does not work on some platforms

The Jacl eof statement is translated to the Jython #eof(fileid) comment with a note to manually surround all the appropriate script with a try…..EOFError instead. However, the EOFError error is not thrown on some platforms as the read command keeps returning an empty line. As a result, your script might have to be modified to use the following Jython script to test for repeated empty lines:
blankLines = 0
more = true
while (more):
    try:
        #done = eof(fileId)  #?PROBLEM? EOF not implemented
        #if (done):
        #    more = false
        #endIf 
        line = fileId.readline().strip()
        ...
        ... # process
        ...
        if( line=="" ):  blankLines = blankLines +1
        else:            blankLines = 0
        if( blankLines>20 ):  more = false
    except EOFError:
        more = false
    #endTry
#endWhile

Feedback