summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-07 19:35:39 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-07 20:16:54 +0200
commit1e40840b3b082deb1ed14e2d82e448684b96ed0d (patch)
tree59828d39d58167ece51e9d75dd005b6840211659 /py/runtime.c
parentfd04bb3bacf5dbc4d79c04a49520e3e81abb7352 (diff)
downloadmicropython-1e40840b3b082deb1ed14e2d82e448684b96ed0d.tar.gz
micropython-1e40840b3b082deb1ed14e2d82e448684b96ed0d.zip
Add OSError, Python 3.3 generic I/O exception.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index a5dafb190d..dce8c7b96a 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -84,6 +84,7 @@ void rt_init(void) {
mp_qstr_map_lookup(&map_builtins, MP_QSTR_TypeError, true)->value = mp_obj_new_exception(MP_QSTR_TypeError);
mp_qstr_map_lookup(&map_builtins, MP_QSTR_SyntaxError, true)->value = mp_obj_new_exception(MP_QSTR_SyntaxError);
mp_qstr_map_lookup(&map_builtins, MP_QSTR_ValueError, true)->value = mp_obj_new_exception(MP_QSTR_ValueError);
+ mp_qstr_map_lookup(&map_builtins, MP_QSTR_OSError, true)->value = mp_obj_new_exception(MP_QSTR_OSError);
// built-in objects
mp_qstr_map_lookup(&map_builtins, MP_QSTR_Ellipsis, true)->value = mp_const_ellipsis;