summaryrefslogtreecommitdiffstats
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>2011-01-14 13:58:10 -0200
commit530a3d23c58a9997106018a64624f4d654e6d6ea (patch)
tree44c8b23df3a892aadfee974126204d0f30079fd2 /PySide/typesystem_templates.xml
parent8243565f817d37ffc33a5c3eabdc6e7657b981e1 (diff)
downloadpyside-530a3d23c58a9997106018a64624f4d654e6d6ea.tar.gz
pyside-530a3d23c58a9997106018a64624f4d654e6d6ea.tar.xz
pyside-530a3d23c58a9997106018a64624f4d654e6d6ea.zip
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 4604fda..dd07459 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;