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/objexcept.c | |
parent | 1c6a1dc740a8414be6c9b1101354fe9a8974ff13 (diff) |
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/objexcept.c')
-rw-r--r-- | py/objexcept.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objexcept.c b/py/objexcept.c index 7f0736543..9b22acd99 100644 --- a/py/objexcept.c +++ b/py/objexcept.c @@ -224,10 +224,10 @@ MP_DEFINE_EXCEPTION(Exception, BaseException) MP_DEFINE_EXCEPTION(AssertionError, Exception) MP_DEFINE_EXCEPTION(AttributeError, Exception) //MP_DEFINE_EXCEPTION(BufferError, Exception) - //MP_DEFINE_EXCEPTION(EnvironmentError, Exception) + //MP_DEFINE_EXCEPTION(EnvironmentError, Exception) use OSError instead MP_DEFINE_EXCEPTION(EOFError, Exception) MP_DEFINE_EXCEPTION(ImportError, Exception) - MP_DEFINE_EXCEPTION(IOError, Exception) + //MP_DEFINE_EXCEPTION(IOError, Exception) use OSError instead MP_DEFINE_EXCEPTION(LookupError, Exception) MP_DEFINE_EXCEPTION_BASE(LookupError) MP_DEFINE_EXCEPTION(IndexError, LookupError) |