From 8b03d944e2ae64f7987116ff342fbd1cc3b97b71 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 30 Sep 2014 13:59:30 +0000 Subject: 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. --- tests/basics/exceptpoly.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/basics/exceptpoly.py') diff --git a/tests/basics/exceptpoly.py b/tests/basics/exceptpoly.py index 599a72b2a..2dc68c13b 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 -- cgit v1.2.3