[farsight2/master] Make it clear in python binding error messages that any sequence should do

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:38 PST 2008


---
 python/pyfarsight.override |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/python/pyfarsight.override b/python/pyfarsight.override
index ebab5d7..04000d1 100644
--- a/python/pyfarsight.override
+++ b/python/pyfarsight.override
@@ -40,7 +40,7 @@ _fs_boxed_list_to_value (GValue *value, PyObject *obj, GType type,
   GList *boxed = NULL;
 
   if (!PySequence_Check (obj)) {
-    PyErr_Format(PyExc_TypeError, "Must be a List of %s", g_type_name (type));
+    PyErr_Format(PyExc_TypeError, "Must be a Sequence of %s", g_type_name (type));
     return -1;
   }
 
@@ -51,7 +51,7 @@ _fs_boxed_list_to_value (GValue *value, PyObject *obj, GType type,
     if (!pyg_boxed_check (item, type))
     {
       PyErr_Format(PyExc_TypeError,
-          "The parameter must be a List of %s", g_type_name (type));
+          "The parameter must be a Sequence of %s", g_type_name (type));
       return -1;
     }
   }
@@ -111,7 +111,7 @@ _fs_codec_list_from_pysequence (PyObject *obj, GList **list)
   if (!PySequence_Check (obj))
   {
     PyErr_SetString (PyExc_TypeError,
-        "The parameter must be a List of FsCodec");
+        "The parameter must be a Sequence of FsCodec");
     return FALSE;
   }
 
@@ -122,7 +122,7 @@ _fs_codec_list_from_pysequence (PyObject *obj, GList **list)
     if (!pyg_boxed_check (item, FS_TYPE_CODEC))
     {
       PyErr_SetString(PyExc_TypeError,
-          "The parameter must be a List of FsCodec");
+          "The parameter must be a Sequence of FsCodec");
       return FALSE;
     }
   }
@@ -669,7 +669,7 @@ _wrap_fs_stream_set_remote_candidates (PyGObject *self, PyObject *arg)
   if (!PySequence_Check (arg))
   {
     PyErr_SetString (PyExc_TypeError,
-        "The parameter must be a List of FsCandidate");
+        "The parameter must be a Sequence of FsCandidate");
     return NULL;
   }
 
@@ -687,7 +687,7 @@ _wrap_fs_stream_set_remote_candidates (PyGObject *self, PyObject *arg)
     if (!pyg_boxed_check (item, FS_TYPE_CANDIDATE))
     {
       PyErr_SetString(PyExc_TypeError,
-          "The parameter must be a List of FsCandidate");
+          "The parameter must be a Sequence of FsCandidate");
       return NULL;
     }
   }
@@ -724,7 +724,7 @@ _wrap_fs_stream_set_remote_codecs (PyGObject *self, PyObject *arg)
   if (!PySequence_Check (arg))
   {
     PyErr_SetString (PyExc_TypeError,
-        "The parameter must be a List of FsCodec");
+        "The parameter must be a Sequence of FsCodec");
     return NULL;
   }
 
-- 
1.5.6.5




More information about the farsight-commits mailing list