Pygtail reads log file lines that have not been read. It will even handle log files that have been rotated. Based on logcheck's logtail2 (http://logcheck.org)
GNU General Public License v2.0
251
stars
79
forks
source link
Fix Python 3 compatibility and remove parentheses in --version #18
Hi, the module currently doesn't work with Python 3 although the tests are succcessful. This is caused by 2to3 which renames next to __next__ even though the latter already exists.
I removed 2to3 from setup() since the code already works with both versions.
I also imported print_function to prevent print("pygtail version", __version__) from displaying ("pygtail version", "0.5.2") with Python 2.
This import works with Python >= 2.6 so it not be an issue for anyone using a recent enough system.
I also fixed a deprecation warning in one of the tests.
Please let me know if you need me to change anything to my fork before merging it.
Hi, the module currently doesn't work with Python 3 although the tests are succcessful. This is caused by 2to3 which renames
next
to__next__
even though the latter already exists. I removed 2to3 fromsetup()
since the code already works with both versions. I also importedprint_function
to preventprint("pygtail version", __version__)
from displaying("pygtail version", "0.5.2")
with Python 2. This import works with Python >= 2.6 so it not be an issue for anyone using a recent enough system. I also fixed a deprecation warning in one of the tests. Please let me know if you need me to change anything to my fork before merging it.