nasa / trick

Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.
Other
32 stars 16 forks source link

Use PyUnicode_GET_LENGTH when possible otherwise use PyUnicode_GET_SIZE for Python 3 #1614

Closed hchen99 closed 9 months ago

hchen99 commented 9 months ago

Updated swig_int_templates.hh to use PyUnicode_GET_LENGTH if available otherwise use PyUnicode_GET_SIZE for Python 3 as PyUnicode_GET_LENGTH is new in Python 3.3 and PyUnicode_GET_SIZE is deprecated in Python 3.3 and removed in Python 3.12.

coveralls commented 9 months ago

Coverage Status

coverage: 55.737% (-0.02%) from 55.755% when pulling c91fde625dc4e768ce5107d900c94431880788c8 on 1613-pyunicode_get_size-removed-in-python-3.12 into 25b692d05595d3c05cd81e3ce9b02a3884bbab62 on master.