File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ STATIC const mp_obj_type_t bufwriter_type = {
131131};
132132#endif // MICROPY_PY_IO_BUFFEREDWRITER
133133
134- #if MICROPY_MODULE_FROZEN_STR
134+ #if MICROPY_PY_IO_RESOURCE_STREAM
135135STATIC mp_obj_t resource_stream (mp_obj_t package_in , mp_obj_t path_in ) {
136136 VSTR_FIXED (path_buf , MICROPY_ALLOC_PATH_MAX );
137137 size_t len ;
@@ -179,7 +179,7 @@ STATIC mp_obj_t resource_stream(mp_obj_t package_in, mp_obj_t path_in) {
179179 mp_obj_t path_out = mp_obj_new_str (path_buf .buf , path_buf .len );
180180 return mp_builtin_open (1 , & path_out , (mp_map_t * )& mp_const_empty_map );
181181}
182- MP_DEFINE_CONST_FUN_OBJ_2 (resource_stream_obj , resource_stream );
182+ STATIC MP_DEFINE_CONST_FUN_OBJ_2 (resource_stream_obj , resource_stream );
183183#endif
184184
185185STATIC const mp_rom_map_elem_t mp_module_io_globals_table [] = {
You can’t perform that action at this time.
0 commit comments