summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-03-09 11:28:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-03-12 13:48:57 +0000
commit94541ebd9eb95a47f40bac95f5f6982a562e5a4d (patch)
treed3308539e84669b34411727b997a75fdd6372d6f
parentfc290187f08981c734d1f2d3f6649c94e3ac6f99 (diff)
fdo#46926: fix the fix for Python 3
Thanks to Maxime de Roucy for the hint that the "cmpfunc" type doesn't exist. (cherry picked from commit 06484b6946ac6a974c24af6624fb75bbe298c1e8) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--pyuno/source/module/pyuno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index 82e29ac8aa4e..7f5f0b586b8e 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -661,7 +661,7 @@ static PyTypeObject PyUNOType =
(printfunc) 0,
(getattrfunc) PyUNO_getattr,
(setattrfunc) PyUNO_setattr,
- (cmpfunc) 0,
+ /* this type does not exist in Python 3: (cmpfunc) */ 0,
(reprfunc) PyUNO_repr,
0,
0,