diff --git a/etg/colour.py b/etg/colour.py index d5be436b..21da8581 100644 --- a/etg/colour.py +++ b/etg/colour.py @@ -196,15 +196,14 @@ def run(): return 1; if (PyBytes_Check(sipPy) || PyUnicode_Check(sipPy)) return 1; - if (PySequence_Check(sipPy)) { + if (PyTuple_Check(sipPy) || PyList_Check(sipPy)) { size_t len = PySequence_Size(sipPy); if (len != 3 && len != 4) return 0; // ensure all the items in the sequence are numbers for (int idx=0; idx