diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-27 23:49:06 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-27 23:49:06 +0000 |
commit | c63f984647cb69147359440db19d417dfecab2fa (patch) | |
tree | 304cdde53ad1331f8b9e1fdb2272103fd84422ee /py/builtintables.c | |
parent | 01b877d16d791b4b03798c2aa77e39a3d98a0673 (diff) | |
download | micropython-c63f984647cb69147359440db19d417dfecab2fa.tar.gz micropython-c63f984647cb69147359440db19d417dfecab2fa.zip |
py: Thin out predefined exceptions.
Only exceptions that are actually used are left prefedined. Hierarchy
is still there, and removed exceptions are just commented out.
Diffstat (limited to 'py/builtintables.c')
-rw-r--r-- | py/builtintables.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/py/builtintables.c b/py/builtintables.c index fd94f76783..839d5ba813 100644 --- a/py/builtintables.c +++ b/py/builtintables.c @@ -84,10 +84,8 @@ STATIC const mp_builtin_elem_t builtin_object_table[] = { { MP_QSTR_ArithmeticError, (mp_obj_t)&mp_type_ArithmeticError }, { MP_QSTR_AssertionError, (mp_obj_t)&mp_type_AssertionError }, { MP_QSTR_AttributeError, (mp_obj_t)&mp_type_AttributeError }, - { MP_QSTR_BufferError, (mp_obj_t)&mp_type_BufferError }, { MP_QSTR_EOFError, (mp_obj_t)&mp_type_EOFError }, { MP_QSTR_Exception, (mp_obj_t)&mp_type_Exception }, - { MP_QSTR_FloatingPointError, (mp_obj_t)&mp_type_FloatingPointError }, { MP_QSTR_GeneratorExit, (mp_obj_t)&mp_type_GeneratorExit }, { MP_QSTR_IOError, (mp_obj_t)&mp_type_IOError }, { MP_QSTR_ImportError, (mp_obj_t)&mp_type_ImportError }, @@ -105,7 +103,6 @@ STATIC const mp_builtin_elem_t builtin_object_table[] = { { MP_QSTR_SyntaxError, (mp_obj_t)&mp_type_SyntaxError }, { MP_QSTR_SystemError, (mp_obj_t)&mp_type_SystemError }, { MP_QSTR_TypeError, (mp_obj_t)&mp_type_TypeError }, - { MP_QSTR_UnboundLocalError, (mp_obj_t)&mp_type_UnboundLocalError }, { MP_QSTR_ValueError, (mp_obj_t)&mp_type_ValueError }, { MP_QSTR_ZeroDivisionError, (mp_obj_t)&mp_type_ZeroDivisionError }, // Somehow CPython managed to have OverflowError not inherit from ValueError ;-/ |