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 /tests/basics/exceptpoly.py | |
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 'tests/basics/exceptpoly.py')
-rw-r--r-- | tests/basics/exceptpoly.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/basics/exceptpoly.py b/tests/basics/exceptpoly.py index 599a72b2a2..2dc68c13b5 100644 --- a/tests/basics/exceptpoly.py +++ b/tests/basics/exceptpoly.py @@ -108,15 +108,15 @@ except Exception: #except FutureWarning: # print("Caught FutureWarning") -try: - raise IOError -except Exception: - print("Caught IOError via Exception") +#try: +# raise IOError +#except Exception: +# print("Caught IOError via Exception") -try: - raise IOError -except IOError: - print("Caught IOError") +#try: +# raise IOError +#except IOError: +# print("Caught IOError") try: raise ImportError |