python-tail
python-tail copied to clipboard
support for binary files
Added an optional argument to constructor to specify the mode argument to the file open command. Defaults to 'r', for backwards-compatibility. The specific use case this addresses is supporting binary-encoded encoded files by specifying the mode as 'rb'. While using this module to parse pcap files generated by Wireshark, I found this to be a necessary change.
@kasun, I'd completely forgotten about this PR, but just noticed it's still open and has no merge conflicts. Please let me know if there's something that needs to be changed to accept this PR.