Kozea/tinycss2

TypeError: startswith first arg must be str or a tuple of str, not bytes

saddy001 opened this issue · 2 comments

There's a bug:

python3.7/site-packages/tinycss2/bytes.py", line 33, in decode_stylesheet_bytes
    if css_bytes.startswith(b'@charset "'):
TypeError: startswith first arg must be str or a tuple of str, not bytes
liZe commented

Sorry for the delay, and thanks for this pull request!

Could you please post the whole backtrace?

liZe commented

I think that a *_bytes function has been called with str. Please reopen if needed.