commit | d9769b270608654aa7f07ce48a36f084843daf01 | [log] [tgz] |
---|---|---|
author | Xin Long <lucien.xin@gmail.com> | Wed Jul 25 16:43:22 2018 +0800 |
committer | Jiri Pirko <jiri@mellanox.com> | Tue Jul 31 12:15:41 2018 +0200 |
tree | 8814ffffdfbb1a6b17c332ddbaa7ffc02b0f8eaf | |
parent | a383b64082265dbe379a260292caa4b748366cdf [diff] |
binding/python: use SWIG_FromCharPtrAndSize for Python3 support PyString_FromStringAndSize is replaced with PyUnicode_FromStringAndSize in Python3, and SWIG_FromCharPtrAndSize will choose the right one with the check "#if PY_VERSION_HEX >= 0x0300000". Fixes: 4cb7829debd7 ("add support for hw address manipulation") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com>