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

Python 3 encode TypeError. #5

Closed
zkanda opened this issue Jun 10, 2016 · 1 comment
Closed

Python 3 encode TypeError. #5

zkanda opened this issue Jun 10, 2016 · 1 comment

Comments

@zkanda
Copy link
Contributor

zkanda commented Jun 10, 2016

Hello,

I'm getting this error on Python 3.5.1

TypeError: lstrip arg must be None or str

It's very easy to reproduce it.

import base58
base58.b58encode("test")
@keis
Copy link
Owner

keis commented Jun 10, 2016

Just like the base64 module it's intended to be used with bytes arguments and not str() because the encoding is defined in terms of byte level manipulation.

But I'll give you that the error message is horrible

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

No branches or pull requests

2 participants