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

.encode in __repr__ incorrect #30

Closed
bronger opened this issue May 23, 2019 · 1 comment
Closed

.encode in __repr__ incorrect #30

bronger opened this issue May 23, 2019 · 1 comment

Comments

@bronger
Copy link

bronger commented May 23, 2019

I think the encode method calls in the __repr__ methods on sickle/models.py is incorrect. FWIW, I get exceptions with those:

>>> list(sickle.ListSets())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/sickle/models.py", line 168, in __repr__
    return u'<Set %s>'.encode('utf8') % self.setName
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'

If I delete them, everything looks fine.

@mloesch
Copy link
Owner

mloesch commented Jan 12, 2020

Fixed in release 0.6.5

@mloesch mloesch closed this as completed Jan 12, 2020
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