You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ObjectIdField uses unicode(value) to prepare value. 2to3 converts it into str(value) that will lead to "b'…'" strings for values of type bytes on Python 3.
It is better to use decode() method on bytes instances on Python 3. Not sure how to achieve this via 2to3.
The text was updated successfully, but these errors were encountered:
ObjectIdField uses
unicode(value)
to prepare value.2to3
converts it intostr(value)
that will lead to"b'…'"
strings for values of typebytes
on Python 3.It is better to use
decode()
method onbytes
instances on Python 3. Not sure how to achieve this via2to3
.The text was updated successfully, but these errors were encountered: