mp_obj_get_qstr(): Handle MP_OBJ_QSTR.
diff --git a/py/obj.c b/py/obj.c
index 42f86cf..dd081ee 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -222,7 +222,9 @@
 #endif
 
 qstr mp_obj_get_qstr(mp_obj_t arg) {
-    if (MP_OBJ_IS_TYPE(arg, &str_type)) {
+    if (MP_OBJ_IS_QSTR(arg)) {
+        return MP_OBJ_QSTR_VALUE(arg);
+    } else if (MP_OBJ_IS_TYPE(arg, &str_type)) {
         return mp_obj_str_get(arg);
     } else {
         assert(0);