• Michael Pratt's avatar
    Support PyString_AsString() in Python 3 < 3.3 · 8aafd569
    Michael Pratt authored
    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].
    8aafd569
Name
Last commit
Last update
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
README.md Loading commit data...
index.rst Loading commit data...