Replace IOError with OSError (#16715)
diff --git a/Lib/linecache.py b/Lib/linecache.py
index 71dc93d..02a9eb5 100644
--- a/Lib/linecache.py
+++ b/Lib/linecache.py
@@ -91,7 +91,7 @@
             if name and get_source:
                 try:
                     data = get_source(name)
-                except (ImportError, IOError):
+                except (ImportError, OSError):
                     pass
                 else:
                     if data is None:
@@ -125,7 +125,7 @@
     try:
         with tokenize.open(fullname) as fp:
             lines = fp.readlines()
-    except IOError:
+    except OSError:
         return []
     if lines and not lines[-1].endswith('\n'):
         lines[-1] += '\n'