FIX end-of-file boundary checking

This commit is contained in:
dim 2008-02-15 21:12:48 +00:00
parent 192da034c3
commit 45c670f576

View File

@ -185,8 +185,8 @@ class UnbufferedFileReader:
line = self.fd.readline()
self.position = self.fd.tell()
if last_line_read:
self.log.debug("FileReader stoping, offset %d >= %d" \
if line == '' or last_line_read:
self.log.debug("FileReader stoping, offset %d >= %s" \
% (self.position, self.end))
self.fd.close()
return