def follow(file):
return Tailer(file, end=True).follow()<EOL>
Generator that returns lines as data is added to the file.

Returned generator yields bytes.

>>> import io
>>> import os
>>> f = io.open('test_follow.txt', 'w+')
>>> fo = io.open('test_follow.txt', 'rb')
>>> generator = follow(fo)
>>> _ = f.write('Line 1\\n')
>>> f.flush()
>>> print(next(generator).decode('utf-8'))
Line 1
>>> _ = f.write('Line 2\\n')
>>> f.flush()
>>> print(next(generator).decode('utf-8'))
Line 2
>>> _ = f.truncate(0)
>>> _ = f.seek(0)
>>> _ = f.write('Line 3\\n')
>>> f.flush()
>>> print(next(generator).decode('utf-8'))
Line 3
>>> print(next(generator))
None
>>> f.close()
>>> fo.close()
>>> os.remove('test_follow.txt')