wyattscarpenter / unsong-book-fetcher

Downloads the text of Unsong from unsongbook.com and makes an epub out of it
Creative Commons Zero v1.0 Universal
7 stars 1 forks source link

Fix base64 encoding on Python 3.9 #4

Closed bachya closed 3 years ago

bachya commented 3 years ago

I was getting base64 errors:

AttributeError: module 'base64' has no attribute 'encodestring'

...when running Python 3.9.2. This PR fixes things in a backwards-compatible way.

wyattscarpenter commented 3 years ago

Sorry, for some reason github doesn't give me notifications about pull requests to this project (I'll see if I can turn them on! edit: did so) so I didn't see this until now. Would you still like me to take a look at this? @bachya

bachya commented 3 years ago

No worries at all! I deleted that branch, so I don't think I have a way to recover the PR. That said, the changes are there, so feel free to utilize as you wish!