aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/typesystem_templates.xml
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-01-13 17:51:14 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:51:46 -0300
commitb57192c596230ef8fb6a9cb1fe51d3a72e719e4f (patch)
treebea1eb3f14e3b76101529cffc48683de9b352de9 /PySide/typesystem_templates.xml
parentd9940e55a41b83d30ce41e8002f614bfe16d54bf (diff)
Fix bug#584 - "python pickle module can't treat QByteArray object of PySide"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'PySide/typesystem_templates.xml')
-rw-r--r--PySide/typesystem_templates.xml5
1 files changed, 1 insertions, 4 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml
index 4604fda95..dd07459ad 100644
--- a/PySide/typesystem_templates.xml
+++ b/PySide/typesystem_templates.xml
@@ -188,10 +188,7 @@
</template>
<!-- templates for __reduce__ -->
<template name="reduce_code">
- PyObject *type = PyObject_Type(%PYSELF);
- PyObject *args = NULL;
- args = Py_BuildValue("%REDUCE_FORMAT", %REDUCE_ARGS);
- %PYARG_0 = Py_BuildValue("(NN)", type, args);
+ %PYARG_0 = Py_BuildValue("(N(%REDUCE_FORMAT))", PyObject_Type(%PYSELF), %REDUCE_ARGS);
</template>
<template name="reduce_code_matrix">
QList&lt; %MATRIX_TYPE &gt; cppArgs;