diff options
author | Damien George <damien.p.george@gmail.com> | 2014-09-30 13:59:30 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-09-30 13:59:30 +0000 |
commit | 8b03d944e2ae64f7987116ff342fbd1cc3b97b71 (patch) | |
tree | cf97eaa8ef616e44c6703535b42b73de7650c1f0 /py/builtintables.c | |
parent | 1c6a1dc740a8414be6c9b1101354fe9a8974ff13 (diff) | |
download | micropython-8b03d944e2ae64f7987116ff342fbd1cc3b97b71.tar.gz micropython-8b03d944e2ae64f7987116ff342fbd1cc3b97b71.zip |
py: Remove IOError since it's deprecated; use OSError instead.
In CPython IOError (and EnvironmentError) is deprecated and aliased to
OSError. All modules that used to raise IOError now raise OSError (or a
derived exception).
In Micro Python we never used IOError (except 1 place, incorrectly) and
so don't need to keep it.
See http://legacy.python.org/dev/peps/pep-3151/ for background.
Diffstat (limited to 'py/builtintables.c')
-rw-r--r-- | py/builtintables.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/py/builtintables.c b/py/builtintables.c index 7b35207fa5..5712a3ef56 100644 --- a/py/builtintables.c +++ b/py/builtintables.c @@ -123,7 +123,6 @@ STATIC const mp_map_elem_t mp_builtin_object_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_EOFError), (mp_obj_t)&mp_type_EOFError }, { MP_OBJ_NEW_QSTR(MP_QSTR_Exception), (mp_obj_t)&mp_type_Exception }, { MP_OBJ_NEW_QSTR(MP_QSTR_GeneratorExit), (mp_obj_t)&mp_type_GeneratorExit }, - { MP_OBJ_NEW_QSTR(MP_QSTR_IOError), (mp_obj_t)&mp_type_IOError }, { MP_OBJ_NEW_QSTR(MP_QSTR_ImportError), (mp_obj_t)&mp_type_ImportError }, { MP_OBJ_NEW_QSTR(MP_QSTR_IndentationError), (mp_obj_t)&mp_type_IndentationError }, { MP_OBJ_NEW_QSTR(MP_QSTR_IndexError), (mp_obj_t)&mp_type_IndexError }, |