Commit abb903df authored by Asim Shankar's avatar Asim Shankar Committed by TensorFlower Gardener
Browse files

Python 3.7 Compatibility: Py_UnicodeAsUTF8AndSize() returns a "const char*"

instead of a "char*".

(See https://docs.python.org/3/whatsnew/3.7.html#c-api-changes)

There are additional changes needed for Python 3.7 compatibility,
this change just pulls out one of them
(and subsumes a related attempt in #21202 and #20766)

Helps with #20517

PiperOrigin-RevId: 207008013
parent 72691c24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment