summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgamblor21 <mark.komus@gmail.com>2020-10-14 14:06:34 -0500
committergamblor21 <mark.komus@gmail.com>2020-10-14 14:06:34 -0500
commite6d0b207ec0abaf69171578d0beb668b17aec4b8 (patch)
tree28c44635f3d7213a27db26a5f0af42b93c7042fc
parent4270061db491bae1e7cca9ca2cbed5db70f9062e (diff)
Removed MICROPY_PY_COLLECTIONS_NAMEDTUPLE__ASDICT from unix coverage
-rw-r--r--ports/unix/mpconfigport_coverage.h1
-rw-r--r--py/objnamedtuple.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/ports/unix/mpconfigport_coverage.h b/ports/unix/mpconfigport_coverage.h
index 51015a587..468d69a73 100644
--- a/ports/unix/mpconfigport_coverage.h
+++ b/ports/unix/mpconfigport_coverage.h
@@ -49,7 +49,6 @@
#define MICROPY_VFS_FAT (1)
#define MICROPY_FATFS_USE_LABEL (1)
#define MICROPY_PY_FRAMEBUF (1)
-#define MICROPY_PY_COLLECTIONS_NAMEDTUPLE__ASDICT (1)
// TODO these should be generic, not bound to fatfs
#define mp_type_fileio mp_type_vfs_posix_fileio
diff --git a/py/objnamedtuple.c b/py/objnamedtuple.c
index 6c36909e7..ab2f2f3c0 100644
--- a/py/objnamedtuple.c
+++ b/py/objnamedtuple.c
@@ -46,7 +46,7 @@ size_t mp_obj_namedtuple_find_field(const mp_obj_namedtuple_type_t *type, qstr n
return (size_t)-1;
}
-#if MICROPY_PY_COLLECTIONS_NAMEDTUPLE__ASDICT
+#if MICROPY_PY_COLLECTIONS_ORDEREDDICT
STATIC mp_obj_t namedtuple_asdict(mp_obj_t self_in) {
mp_obj_namedtuple_t *self = MP_OBJ_TO_PTR(self_in);
const qstr *fields = ((mp_obj_namedtuple_type_t*)self->tuple.base.type)->fields;