From d8a2c1914500e5bb5b81073ed07f1aff460ef2ad Mon Sep 17 00:00:00 2001 From: DimitrisJim Date: Sat, 25 Mar 2017 22:34:42 +0200 Subject: [PATCH] Fix small exception typos in Lib --- Lib/_pyio.py | 4 ++-- Lib/asyncio/windows_utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/_pyio.py b/Lib/_pyio.py index 8f9397660bcffdd..5dfc1f0308d97b0 100644 --- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -766,7 +766,7 @@ def truncate(self, pos=None): def flush(self): if self.closed: - raise ValueError("flush of closed file") + raise ValueError("flush on closed file") self.raw.flush() def close(self): @@ -1214,7 +1214,7 @@ def flush(self): def _flush_unlocked(self): if self.closed: - raise ValueError("flush of closed file") + raise ValueError("flush on closed file") while self._write_buf: try: n = self.raw.write(self._write_buf) diff --git a/Lib/asyncio/windows_utils.py b/Lib/asyncio/windows_utils.py index 7c63fb904b3bdd9..d65ea1790f078dd 100644 --- a/Lib/asyncio/windows_utils.py +++ b/Lib/asyncio/windows_utils.py @@ -149,7 +149,7 @@ def handle(self): def fileno(self): if self._handle is None: - raise ValueError("I/O operatioon on closed pipe") + raise ValueError("I/O operation on closed pipe") return self._handle def close(self, *, CloseHandle=_winapi.CloseHandle):