Add Python 3.7 compatibility
authorBen Webb <ben@salilab.org>
Tue, 3 Jul 2018 16:51:09 +0000 (09:51 -0700)
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>
Tue, 23 Oct 2018 14:33:32 +0000 (15:33 +0100)
commitcc3aca613186644a615e5bc2c96feb6edbeb9277
treed5a895d2d43c533028ac1aaeae25ce0598432e67
parenta64d391497f8d8ba55c21128cfded24c55306c6a
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