File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,9 @@ STATIC mp_obj_t bufwriter_flush(mp_obj_t self_in) {
112
112
}
113
113
STATIC MP_DEFINE_CONST_FUN_OBJ_1 (bufwriter_flush_obj , bufwriter_flush );
114
114
115
- STATIC const mp_map_elem_t bufwriter_locals_dict_table [] = {
116
- { MP_OBJ_NEW_QSTR (MP_QSTR_write ), ( mp_obj_t ) & mp_stream_write_obj },
117
- { MP_OBJ_NEW_QSTR (MP_QSTR_flush ), ( mp_obj_t ) & bufwriter_flush_obj },
115
+ STATIC const mp_rom_map_elem_t bufwriter_locals_dict_table [] = {
116
+ { MP_ROM_QSTR (MP_QSTR_write ), MP_ROM_PTR ( & mp_stream_write_obj ) },
117
+ { MP_ROM_QSTR (MP_QSTR_flush ), MP_ROM_PTR ( & bufwriter_flush_obj ) },
118
118
};
119
119
STATIC MP_DEFINE_CONST_DICT (bufwriter_locals_dict , bufwriter_locals_dict_table );
120
120
@@ -127,7 +127,7 @@ STATIC const mp_obj_type_t bufwriter_type = {
127
127
.name = MP_QSTR_BufferedWriter ,
128
128
.make_new = bufwriter_make_new ,
129
129
.protocol = & bufwriter_stream_p ,
130
- .locals_dict = (mp_obj_t )& bufwriter_locals_dict ,
130
+ .locals_dict = (mp_obj_dict_t * )& bufwriter_locals_dict ,
131
131
};
132
132
#endif // MICROPY_PY_IO_BUFFEREDWRITER
133
133
You can’t perform that action at this time.
0 commit comments