Issue #16706: get rid of os.error
diff --git a/Lib/_pyio.py b/Lib/_pyio.py
index fa77ec1..7aa43e0 100644
--- a/Lib/_pyio.py
+++ b/Lib/_pyio.py
@@ -200,7 +200,7 @@
         buffering = DEFAULT_BUFFER_SIZE
         try:
             bs = os.fstat(raw.fileno()).st_blksize
-        except (os.error, AttributeError):
+        except (OSError, AttributeError):
             pass
         else:
             if bs > 1: