summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-30 13:59:30 +0000
committerDamien George <damien.p.george@gmail.com>2014-09-30 13:59:30 +0000
commit8b03d944e2ae64f7987116ff342fbd1cc3b97b71 (patch)
treecf97eaa8ef616e44c6703535b42b73de7650c1f0 /py/obj.h
parent1c6a1dc740a8414be6c9b1101354fe9a8974ff13 (diff)
downloadmicropython-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/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/obj.h b/py/obj.h
index d96e4ec751..0156286818 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -326,7 +326,6 @@ extern const mp_obj_type_t mp_type_AttributeError;
extern const mp_obj_type_t mp_type_EOFError;
extern const mp_obj_type_t mp_type_Exception;
extern const mp_obj_type_t mp_type_GeneratorExit;
-extern const mp_obj_type_t mp_type_IOError;
extern const mp_obj_type_t mp_type_ImportError;
extern const mp_obj_type_t mp_type_IndentationError;
extern const mp_obj_type_t mp_type_IndexError;