Issue #21720: Improve exception message when the type of fromlist is unicode
diff --git a/Python/import.c b/Python/import.c
index af47b0b..1d74faf 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -2591,8 +2591,9 @@
             return 0;
         }
         if (!PyString_Check(item)) {
-            PyErr_SetString(PyExc_TypeError,
-                            "Item in ``from list'' not a string");
+            PyErr_Format(PyExc_TypeError,
+                         "Item in ``from list'' must be str, not %.200s",
+                         Py_TYPE(item)->tp_name);
             Py_DECREF(item);
             return 0;
         }