File python-PyICU-1.9.7-quote_Version.patch of Package python-PyICU

Index: _icu.cpp
===================================================================
--- _icu.cpp.orig
+++ _icu.cpp
@@ -238,7 +238,11 @@ static PyObject *PyInit_icu(PyObject *m)
     PyType_Ready(&ConstVariableDescriptorType);
     Py_INCREF(&ConstVariableDescriptorType);
 
+#if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 7)
+        ver = PyString_FromString("PYICU_VER");
+#else
     ver = PyString_FromString(PYICU_VER);
+#endif
     PyObject_SetAttrString(m, "VERSION", ver); Py_DECREF(ver);
 
     ver = PyString_FromString(U_ICU_VERSION);
openSUSE Build Service is sponsored by