8000 Use MP_ROM_QSTR · jepler/circuitpython@1d57b86 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1d57b86

Browse files
committed
Use MP_ROM_QSTR
There are more exeptions scattered across the codebase, but this is the only one that foiled my attempts to use grep to check that every object using default___exit___obj also had a deinit method.
1 parent 8da339e commit 1d57b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/analogio/AnalogOut.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ MP_PROPERTY_GETSET(analogio_analogout_value_obj,
100100

101101
static const mp_rom_map_elem_t analogio_analogout_locals_dict_table[] = {
102102
// instance methods
103-
{ MP_OBJ_NEW_QSTR(MP_QSTR_deinit), MP_ROM_PTR(&analogio_analogout_deinit_obj) },
103+
{ MP_ROM_QSTR(MP_QSTR_deinit), MP_ROM_PTR(&analogio_analogout_deinit_obj) },
104104
{ MP_ROM_QSTR(MP_QSTR___enter__), MP_ROM_PTR(&default___enter___obj) },
105105
{ MP_ROM_QSTR(MP_QSTR___exit__), MP_ROM_PTR(&default___exit___obj) },
106106

0 commit comments

Comments
 (0)
0