Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
a6eff059
Commit
a6eff059
authored
Dec 12, 2015
by
Paul Sokolovsky
Browse files
unix: Rename "_os" module to "uos" for consistency with baremetal ports.
parent
967ceba5
Changes
7
Hide whitespace changes
Inline
Side-by-side
tests/io/open_append.py
View file @
a6eff059
import
sys
try
:
import
_
os
as
os
import
u
os
as
os
except
ImportError
:
import
os
...
...
tests/run-tests-exp.py
View file @
a6eff059
...
...
@@ -6,7 +6,7 @@
# which is to be tested, so should use minimal language functionality.
#
import
sys
import
_
os
as
os
import
u
os
as
os
tests
=
[
...
...
unix/modos.c
View file @
a6eff059
...
...
@@ -156,7 +156,7 @@ STATIC mp_obj_t mod_os_mkdir(mp_obj_t path_in) {
STATIC
MP_DEFINE_CONST_FUN_OBJ_1
(
mod_os_mkdir_obj
,
mod_os_mkdir
);
STATIC
const
mp_rom_map_elem_t
mp_module_os_globals_table
[]
=
{
{
MP_ROM_QSTR
(
MP_QSTR___name__
),
MP_ROM_QSTR
(
MP_QSTR_
_
os
)
},
{
MP_ROM_QSTR
(
MP_QSTR___name__
),
MP_ROM_QSTR
(
MP_QSTR_
u
os
)
},
{
MP_ROM_QSTR
(
MP_QSTR_stat
),
MP_ROM_PTR
(
&
mod_os_stat_obj
)
},
#if MICROPY_PY_OS_STATVFS
{
MP_ROM_QSTR
(
MP_QSTR_statvfs
),
MP_ROM_PTR
(
&
mod_os_statvfs_obj
)
},
...
...
@@ -171,6 +171,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_os_globals, mp_module_os_globals_table);
const
mp_obj_module_t
mp_module_os
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_
_
os
,
.
name
=
MP_QSTR_
u
os
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_os_globals
,
};
unix/mpconfigport.h
View file @
a6eff059
...
...
@@ -163,7 +163,7 @@ extern const struct _mp_obj_module_t mp_module_jni;
MICROPY_PY_JNI_DEF \
MICROPY_PY_TIME_DEF \
MICROPY_PY_SOCKET_DEF \
{ MP_ROM_QSTR(MP_QSTR_
_
os), MP_ROM_PTR(&mp_module_os) }, \
{ MP_ROM_QSTR(MP_QSTR_
u
os), MP_ROM_PTR(&mp_module_os) }, \
{ MP_ROM_QSTR(MP_QSTR_uselect), MP_ROM_PTR(&mp_module_uselect) }, \
MICROPY_PY_TERMIOS_DEF \
...
...
unix/mpconfigport_minimal.h
View file @
a6eff059
...
...
@@ -98,7 +98,7 @@
extern
const
struct
_mp_obj_module_t
mp_module_os
;
#define MICROPY_PORT_BUILTIN_MODULES \
{ MP_OBJ_NEW_QSTR(MP_QSTR_
_
os), (mp_obj_t)&mp_module_os }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_
u
os), (mp_obj_t)&mp_module_os }, \
// type definitions for the specific machine
...
...
unix/qstrdefsport.h
View file @
a6eff059
...
...
@@ -34,7 +34,7 @@ Q(makefile)
Q
(
FileIO
)
Q
(
flush
)
Q
(
_
os
)
Q
(
u
os
)
Q
(
stat
)
#if MICROPY_PY_OS_STATVFS
Q
(
statvfs
)
...
...
windows/mpconfigport.h
View file @
a6eff059
...
...
@@ -152,7 +152,7 @@ extern const struct _mp_obj_module_t mp_module_os;
extern
const
struct
_mp_obj_module_t
mp_module_time
;
#define MICROPY_PORT_BUILTIN_MODULES \
{ MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&mp_module_time }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_
_
os), (mp_obj_t)&mp_module_os }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_
u
os), (mp_obj_t)&mp_module_os }, \
#if MICROPY_USE_READLINE == 1
#define MICROPY_PORT_ROOT_POINTERS \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment