Add Python 3.7 compatibility
authorBen Webb <ben@salilab.org>
Tue, 3 Jul 2018 16:51:09 +0000 (09:51 -0700)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 25 Oct 2018 12:28:38 +0000 (13:28 +0100)
commit0142163c82da5f6e6afca191e3331e25579d3319
treeafc5ba8a1b739880e6b388056e16b79a8a47f4db
parent24794e33bb1faa705667aa2098641ad343d85938
Add Python 3.7 compatibility

Compilation of Python wrappers fails with Python 3.7 because
the Python folks changed their C API such that
PyUnicode_AsUTF8AndSize() now returns a const char* rather
than a char*. Add a patch to work around. Relates #4086.

Gbp-Pq: Name Add_Python_3.7_compatibility.patch
python/google/protobuf/pyext/descriptor.cc
python/google/protobuf/pyext/descriptor_containers.cc
python/google/protobuf/pyext/descriptor_pool.cc
python/google/protobuf/pyext/message.cc