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>
Mon, 26 Nov 2018 23:23:31 +0000 (23:23 +0000)
commit2811bd91a3410799f068329f2365d4a84437d341
tree9ec8a99b2819e006366ea4c8c4332cba89dbe67e
parent8d2c2b7342b6f9f1d82a2192a6d8655503a5e2cb
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