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

TextProperty fails loading from db if compressed #848

Open
dmalis opened this issue Dec 7, 2022 · 0 comments
Open

TextProperty fails loading from db if compressed #848

dmalis opened this issue Dec 7, 2022 · 0 comments
Labels
api: datastore Issues related to the googleapis/python-ndb API.

Comments

@dmalis
Copy link

dmalis commented Dec 7, 2022

When checking if value is compressed, code below fails @ py3.8

if not value.startswith(_ZLIB_COMPRESSION_MARKER):
return value

with an error:

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

@product-auto-label product-auto-label bot added the api: datastore Issues related to the googleapis/python-ndb API. label Dec 7, 2022
@dmalis dmalis changed the title CompressedTextProperty fails loading from db TextProperty fails loading from db if compressed Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the googleapis/python-ndb API.
Projects
None yet
Development

No branches or pull requests

1 participant