--- work/modules/python/src2/cv2.cpp.orig	2018-06-17 15:47:04.487585497 +0000
+++ work/modules/python/src2/cv2.cpp	2018-06-17 15:48:02.025745297 +0000
@@ -886,7 +886,7 @@
     (void)name;
     if(!obj || obj == Py_None)
         return true;
-    char* str = PyString_AsString(obj);
+    const char* str = PyString_AsString(obj);
     if(!str)
         return false;
     value = String(str);
