Skip to content

Commit 7324c9e

Browse files
lukesneeringerlandrito
authored andcommitted
Document to_legacy_urlsafe as being equivalent to ndb. (googleapis#3783)
1 parent 2414c18 commit 7324c9e

File tree

1 file changed

+5
-0
lines changed
  • datastore/google/cloud/datastore

1 file changed

+5
-0
lines changed

datastore/google/cloud/datastore/key.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ def to_legacy_urlsafe(self):
307307
argument to ``ndb.Key(urlsafe=...)``. The base64 encoded values
308308
will have padding removed.
309309
310+
.. note::
311+
312+
The string returned by ``to_legacy_urlsafe`` is equivalent, but
313+
not identical, to the string returned by ``ndb``.
314+
310315
:rtype: bytes
311316
:returns: A bytestring containing the key encoded as URL-safe base64.
312317
"""

0 commit comments

Comments
 (0)