mirror of https://github.com/opencv/opencv.git
In Python 3, version 3.3+, PyUnicode_AsUTF8() provides similar functionality to Python 2's PyString_AsString(). In older versions of Python 3, there is no public function to provide the same functionality. However, the "internal" _PyUnicode_AsString() does provide that functionality, so use it to replace PyString_AsString(). With this patch, cv2 should compile for Python 3.[0-2].pull/1767/head
parent
254aece317
commit
8aafd569c8
1 changed files with 7 additions and 1 deletions
Loading…
Reference in new issue