Salome HOME
[PYTHON 3] 1st draft
[modules/gui.git] / src / Plot2d / Plot2d_AnalyticalParser.cxx
index 23b62a5b5b451738545ae1ab9a8265ae153e459c..2fd2acb1deace371db1d0ed5db65dfb207b4f5bd 100755 (executable)
@@ -71,8 +71,8 @@ namespace {
   static PyTypeObject PyStdOut_Type = {
     /* The ob_type field must be initialized in the module init function
      * to be portable to Windows without using C++. */
-    PyObject_HEAD_INIT(NULL)
-    0,                            /*ob_size*/
+    PyVarObject_HEAD_INIT(NULL, 0)
+    /* 0, */                           /*ob_size*/
     "PyOut",                      /*tp_name*/
     sizeof(PyStdOut),             /*tp_basicsize*/
     0,                            /*tp_itemsize*/