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

Fix type of an argument to PDFFont#decode to bytes in py3 #125

Merged
merged 1 commit into from
Mar 19, 2018

Conversation

yosida95
Copy link
Contributor

The bytes argument of PDFFront#decode requires binary type, in Python 3 bytes and in Python 2 str. But the current code converts bytes to str in Python 3, eventually causes TypeError in later process (e.g. struct.unpack). This patch fixes this issue.

@tataganesh tataganesh merged commit eddf861 into pdfminer:master Mar 19, 2018
@yosida95 yosida95 deleted the bytes-type branch March 19, 2018 05:47
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.

2 participants