summaryrefslogtreecommitdiffstats
path: root/libraries/libopensync/patches/libopensync-0.22-swig-typeerror.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libopensync/patches/libopensync-0.22-swig-typeerror.patch')
-rw-r--r--libraries/libopensync/patches/libopensync-0.22-swig-typeerror.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/libraries/libopensync/patches/libopensync-0.22-swig-typeerror.patch b/libraries/libopensync/patches/libopensync-0.22-swig-typeerror.patch
new file mode 100644
index 0000000000..b1e42f3944
--- /dev/null
+++ b/libraries/libopensync/patches/libopensync-0.22-swig-typeerror.patch
@@ -0,0 +1,13 @@
+diff --git a/wrapper/opensync.i b/wrapper/opensync.i
+index 623c0f4..8131158 100644
+--- a/wrapper/opensync.i
++++ b/wrapper/opensync.i
+@@ -82,7 +82,7 @@ typedef struct {} OSyncHashTable;
+ %extend OSyncChange {
+ OSyncChange(PyObject *obj=NULL) {
+ OSyncChange *change = NULL;
+- if (obj)
++ if ((obj) && (obj != Py_None))
+ change = (OSyncChange *)PyCObject_AsVoidPtr(obj);
+ else
+ change = osync_change_new();