Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for binary files #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rgalonso
Copy link

@rgalonso rgalonso commented Apr 5, 2018

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.

rgalonso added 2 commits April 5, 2018 12:34
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.
Last commit accidentally checked in a debug change where I started the initial seek at the beginning of the file instead of the end.  Restoring this to the end so that the only delta is just the binary support intended.
@rgalonso
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant