Skip to content

TextProperty fails loading from db if compressed #848

@dmalis

Description

@dmalis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: datastoreIssues related to the googleapis/python-ndb API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions